summaryrefslogtreecommitdiff
path: root/src/mbgl/layout/symbol_projection.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-05-22 16:41:40 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-05-24 10:54:06 +0300
commitaa3a7cf02f2b5d0b99bec9d335c9681dcfa38426 (patch)
tree08d9826c1b419960a1e7a03b6fefb6d21aeab923 /src/mbgl/layout/symbol_projection.hpp
parentd8e9acd0f510a811f5c1fa87738be646ff83b715 (diff)
downloadqtlocation-mapboxgl-aa3a7cf02f2b5d0b99bec9d335c9681dcfa38426.tar.gz
[core] SymbolBucket updates complete at placement stage
`RenderSymbolLayer` does not have to update dynamic vertices of its buckets, this logic is moved to placement (which is already updates opacity vertices). * fixes clustering of labels when text variable placement enabled - as assignes `usesVariablePlacement` per bucket * simplifies the code in `RenderSymbolLayer` (the `RenderSymbolLayer::upload()` is now omitted). * symbol buckets are not modified after orchestration finishes
Diffstat (limited to 'src/mbgl/layout/symbol_projection.hpp')
-rw-r--r--src/mbgl/layout/symbol_projection.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/layout/symbol_projection.hpp b/src/mbgl/layout/symbol_projection.hpp
index 3699eee290..58c635eaae 100644
--- a/src/mbgl/layout/symbol_projection.hpp
+++ b/src/mbgl/layout/symbol_projection.hpp
@@ -47,7 +47,7 @@ namespace mbgl {
PointAndCameraDistance project(const Point<float>& point, const mat4& matrix);
void reprojectLineLabels(gfx::VertexVector<gfx::Vertex<SymbolDynamicLayoutAttributes>>&, const std::vector<PlacedSymbol>&,
- const mat4& posMatrix, const style::SymbolPropertyValues&,
+ const mat4& posMatrix, bool pitchWithMap, bool rotateWithMap, bool keepUpright,
const RenderTile&, const SymbolSizeBinder& sizeBinder, const TransformState&);
optional<std::pair<PlacedGlyph, PlacedGlyph>> placeFirstAndLastGlyph(const float fontScale,