diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-07-08 10:59:45 +0300 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-07-09 11:43:46 +0300 |
commit | 8d94bb1be0abfb03e958abe740976e920ea53f27 (patch) | |
tree | 171b39ec3cffabd43615b571a54a0aa7f84f1019 /src/mbgl/renderer/render_orchestrator.hpp | |
parent | 57402314e1be3180ce6f67d8ba29c17aceba6b60 (diff) | |
download | qtlocation-mapboxgl-8d94bb1be0abfb03e958abe740976e920ea53f27.tar.gz |
[core] Reserve size for filtered render layers
Diffstat (limited to 'src/mbgl/renderer/render_orchestrator.hpp')
-rw-r--r-- | src/mbgl/renderer/render_orchestrator.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mbgl/renderer/render_orchestrator.hpp b/src/mbgl/renderer/render_orchestrator.hpp index 4622ac1749..884bd21b7b 100644 --- a/src/mbgl/renderer/render_orchestrator.hpp +++ b/src/mbgl/renderer/render_orchestrator.hpp @@ -33,6 +33,10 @@ class PatternAtlas; class CrossTileSymbolIndex; class RenderTree; +namespace style { + class LayerProperties; +} // namespace style + class RenderOrchestrator final : public GlyphManagerObserver, public ImageManagerObserver, public RenderSourceObserver { @@ -113,6 +117,10 @@ private: const bool backgroundLayerAsColor; bool contextLost = false; + + // Vector with reserved capacity of layerImpls->size() to avoid reallocation + // on each frame. + std::vector<Immutable<style::LayerProperties>> filteredLayersForSource; }; } // namespace mbgl |