summaryrefslogtreecommitdiff
path: root/src/mbgl/text/placement.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-03-25 13:02:46 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-03-25 15:11:41 +0200
commit735fc0a4dcbd82f4e63ee9154cc10e060bcd5ad5 (patch)
treec8581945ccdbf9bdedb421fefdd91e5cf8292757 /src/mbgl/text/placement.hpp
parent313844b1da56b105cc2798a609b82d85d2286ba5 (diff)
downloadqtlocation-mapboxgl-735fc0a4dcbd82f4e63ee9154cc10e060bcd5ad5.tar.gz
[core][tile mode] Share seenCrossTileIDs across all placeLayer() calls
Thus we obviate lots of repeated operations for already placed symbols.
Diffstat (limited to 'src/mbgl/text/placement.hpp')
-rw-r--r--src/mbgl/text/placement.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/text/placement.hpp b/src/mbgl/text/placement.hpp
index 396aad4425..e86135130a 100644
--- a/src/mbgl/text/placement.hpp
+++ b/src/mbgl/text/placement.hpp
@@ -139,7 +139,7 @@ public:
protected:
friend SymbolBucket;
void placeSymbolBucket(const BucketPlacementData&, std::set<uint32_t>& seenCrossTileIDs);
- void placeLayer(const RenderLayer&);
+ void placeLayer(const RenderLayer&, std::set<uint32_t>&);
virtual void commit();
// Implentation specific hooks, which get called during a symbol bucket placement.
virtual optional<CollisionBoundaries> getAvoidEdges(const SymbolBucket&, const mat4& /*posMatrix*/) {