diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-01-11 18:55:56 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-01-14 12:53:44 +0200 |
commit | 12295ef3355170d1877da5ef183eecfe7ad982be (patch) | |
tree | 68a11fc84042d9eb38cb62622dd3066d90bb1952 /src/mbgl/layout | |
parent | 4db55c3ace71fcc07c3ba4de99d411bf59d46397 (diff) | |
download | qtlocation-mapboxgl-12295ef3355170d1877da5ef183eecfe7ad982be.tar.gz |
[core] SymbolBucket: use single map for paint properties data
Obviates unnecessary lookups, improves readability.
Diffstat (limited to 'src/mbgl/layout')
-rw-r--r-- | src/mbgl/layout/symbol_layout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp index 4acd0a1ccd..a95c414c82 100644 --- a/src/mbgl/layout/symbol_layout.cpp +++ b/src/mbgl/layout/symbol_layout.cpp @@ -469,9 +469,9 @@ void SymbolLayout::createBucket(const ImagePositions&, std::unique_ptr<FeatureIn } } - for (auto& pair : bucket->paintPropertyBinders) { - pair.second.first.populateVertexVectors(feature, bucket->icon.vertices.vertexSize(), {}, {}); - pair.second.second.populateVertexVectors(feature, bucket->text.vertices.vertexSize(), {}, {}); + for (auto& pair : bucket->paintProperties) { + pair.second.iconBinders.populateVertexVectors(feature, bucket->icon.vertices.vertexSize(), {}, {}); + pair.second.textBinders.populateVertexVectors(feature, bucket->text.vertices.vertexSize(), {}, {}); } } |