diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-13 11:21:27 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-13 13:45:48 +0300 |
commit | 0d9e4afd20f4e28479fcc725b7579d66477ed07a (patch) | |
tree | 25a156d76a5e0faf241e05aa55b0eca9743210fd /src/mbgl/text/placement.hpp | |
parent | fc741cdd211c5eb010fa5eb220b13b1f42bf8bde (diff) | |
download | qtlocation-mapboxgl-0d9e4afd20f4e28479fcc725b7579d66477ed07a.tar.gz |
[core] Coalesce buckets updates from several tiles
Diffstat (limited to 'src/mbgl/text/placement.hpp')
-rw-r--r-- | src/mbgl/text/placement.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/text/placement.hpp b/src/mbgl/text/placement.hpp index c1fe69b852..b5405cbcd7 100644 --- a/src/mbgl/text/placement.hpp +++ b/src/mbgl/text/placement.hpp @@ -110,7 +110,7 @@ public: const CollisionIndex& getCollisionIndex() const; bool stillRecent(TimePoint now, const float zoom) const; - void setRecent(TimePoint now); + void setMaximumUpdatePeriod(Duration); void setStale(); const RetainedQueryData& getQueryData(uint32_t bucketInstanceId) const; @@ -126,6 +126,7 @@ private: void markUsedJustification(SymbolBucket&, style::TextVariableAnchorType, const SymbolInstance&, style::TextWritingModeType orientation); void markUsedOrientation(SymbolBucket&, style::TextWritingModeType, const SymbolInstance&); float zoomAdjustment(const float zoom) const; + Duration getUpdatePeriod(const float zoom) const; CollisionIndex collisionIndex; @@ -147,6 +148,7 @@ private: std::unordered_map<uint32_t, RetainedQueryData> retainedQueryData; CollisionGroups collisionGroups; std::unique_ptr<Placement> prevPlacement; + optional<Duration> maximumUpdatePeriod; // Used for debug purposes. std::unordered_map<const CollisionFeature*, std::vector<ProjectedCollisionBox>> collisionCircles; |