diff options
author | Chris Loer <chris.loer@gmail.com> | 2018-01-19 11:38:31 -0800 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2018-01-19 14:50:42 -0800 |
commit | b2e71abfeeaf7326b47e54a0a255a3fe73628022 (patch) | |
tree | 6ba639c20443d7d8b757c3f79ad9e9b9313f7439 /src/mbgl/text/cross_tile_symbol_index.hpp | |
parent | 7c2e8c5eb1cda536be73e97afbc4b5276735fb51 (diff) | |
download | qtlocation-mapboxgl-b2e71abfeeaf7326b47e54a0a255a3fe73628022.tar.gz |
Prune unused layers from CrossTileSymbolIndex
Fixes issue #10939 -- removed layers would leak entries in the CrossTileSymbolIndex.
Diffstat (limited to 'src/mbgl/text/cross_tile_symbol_index.hpp')
-rw-r--r-- | src/mbgl/text/cross_tile_symbol_index.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/text/cross_tile_symbol_index.hpp b/src/mbgl/text/cross_tile_symbol_index.hpp index 5abcde241c..541c2e3661 100644 --- a/src/mbgl/text/cross_tile_symbol_index.hpp +++ b/src/mbgl/text/cross_tile_symbol_index.hpp @@ -57,6 +57,7 @@ public: CrossTileSymbolIndex(); bool addLayer(RenderSymbolLayer&); + void pruneUnusedLayers(const std::set<std::string>&); void reset(); private: |