summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-16 17:31:52 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-17 11:38:04 -0700
commit2921127bdbe6cb7583c097675fe67416c8dff38e (patch)
treefc1243f56ab93eabaddfb3a979ddee31ebffc4a7 /include/mbgl/map
parente2f52a1dd8020e8665c55650c75d4e5a5e1423a6 (diff)
downloadqtlocation-mapboxgl-2921127bdbe6cb7583c097675fe67416c8dff38e.tar.gz
[core] Avoid unnecessary work when a symbol annotation is updated
In particular, if only the geometry changes, don't cascade and recalculate the style.
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/update.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mbgl/map/update.hpp b/include/mbgl/map/update.hpp
index 3915545bb0..1c1270ac70 100644
--- a/include/mbgl/map/update.hpp
+++ b/include/mbgl/map/update.hpp
@@ -13,7 +13,8 @@ enum class Update : uint8_t {
RecalculateStyle = 1 << 3,
RenderStill = 1 << 4,
Repaint = 1 << 5,
- Annotations = 1 << 6,
+ AnnotationStyle = 1 << 6,
+ AnnotationData = 1 << 7,
};
inline Update operator| (const Update& lhs, const Update& rhs) {