Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/drape
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-11-21 14:00:51 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-11-22 14:31:08 +0300
commit2c082911415386e11a88f2c9d3c956f12c4eb139 (patch)
treeb34ff0dfd6836ed6c56fced795c4494aa96205d4 /drape
parent3db76efa23fb8b7e051fce68f66ce09f602d3b77 (diff)
Improved rendering
Diffstat (limited to 'drape')
-rw-r--r--drape/batcher.cpp4
-rw-r--r--drape/batcher.hpp9
2 files changed, 10 insertions, 3 deletions
diff --git a/drape/batcher.cpp b/drape/batcher.cpp
index c8bc1b548a..1f4cdc1ea9 100644
--- a/drape/batcher.cpp
+++ b/drape/batcher.cpp
@@ -283,9 +283,7 @@ IndicesRange Batcher::InsertPrimitives(GLState const & state, ref_ptr<AttributeP
Batcher * BatcherFactory::GetNew() const
{
- uint32_t const kIndexBufferSize = 5000;
- uint32_t const kVertexBufferSize = 5000;
- return new Batcher(kIndexBufferSize, kVertexBufferSize);
+ return new Batcher(m_indexBufferSize, m_vertexBufferSize);
}
SessionGuard::SessionGuard(Batcher & batcher, Batcher::TFlushFn const & flusher)
diff --git a/drape/batcher.hpp b/drape/batcher.hpp
index ca5f30f6a0..18eeac31d6 100644
--- a/drape/batcher.hpp
+++ b/drape/batcher.hpp
@@ -87,7 +87,16 @@ private:
class BatcherFactory
{
public:
+ BatcherFactory(uint32_t indexBufferSize, uint32_t vertexBufferSize)
+ : m_indexBufferSize(indexBufferSize)
+ , m_vertexBufferSize(vertexBufferSize)
+ {}
+
Batcher * GetNew() const;
+
+private:
+ uint32_t const m_indexBufferSize;
+ uint32_t const m_vertexBufferSize;
};
class SessionGuard