diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-08-20 15:34:32 -0400 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-11-05 10:33:21 +0100 |
commit | 177372b83657cda9696ff68fd5cbb872b87ce324 (patch) | |
tree | b067aa7eb0a404ff218cd7a08c325f2821d205f1 /src/mbgl/renderer/painter.hpp | |
parent | 24285926c21fd1ea36157895de2d55e489b63f9f (diff) | |
download | qtlocation-mapboxgl-177372b83657cda9696ff68fd5cbb872b87ce324.tar.gz |
[core] only update the render order array when there are changes to tiles
Diffstat (limited to 'src/mbgl/renderer/painter.hpp')
-rw-r--r-- | src/mbgl/renderer/painter.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/renderer/painter.hpp b/src/mbgl/renderer/painter.hpp index 8f63388461..28008c5ac5 100644 --- a/src/mbgl/renderer/painter.hpp +++ b/src/mbgl/renderer/painter.hpp @@ -134,13 +134,13 @@ public: bool needsAnimation() const; + void updateRenderOrder(const Style& style); + private: void setup(); void setupShaders(); mat4 translatedMatrix(const mat4& matrix, const std::array<float, 2> &translation, const TileID &id, TranslateAnchorType anchor); - std::vector<RenderItem> determineRenderOrder(const Style& style); - template <class Iterator> void renderPass(RenderPass, Iterator it, Iterator end, @@ -198,6 +198,8 @@ private: float depthRangeSize; const float depthEpsilon = 1.0f / (1 << 16); + std::vector<RenderItem> order; + public: FrameHistory frameHistory; |