summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-03-20 19:22:27 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-03-23 11:02:19 +0100
commit9637176711f2f72e5bfa06561050c4737da6953c (patch)
tree613f4f0330a917aca3f35287f935c022356d981f /include
parent268975d4c2d8ce572a500a5f4b06a13eca51cf28 (diff)
downloadqtlocation-mapboxgl-9637176711f2f72e5bfa06561050c4737da6953c.tar.gz
move defaultTransitionDuration to MapData
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 7473a0694a..e77149a4d7 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -78,9 +78,10 @@ public:
// Notifies the Map thread that the state has changed and an update might be necessary.
using UpdateType = uint32_t;
enum class Update : UpdateType {
- Nothing = 0,
- StyleInfo = 1 << 0,
- Debug = 1 << 1,
+ Nothing = 0,
+ StyleInfo = 1 << 0,
+ Debug = 1 << 1,
+ DefaultTransitionDuration = 1 << 2,
};
void triggerUpdate(Update = Update::Nothing);
@@ -253,8 +254,6 @@ private:
std::vector<std::string> classes;
std::string accessToken;
- std::chrono::steady_clock::duration defaultTransitionDuration;
-
std::set<util::ptr<StyleSource>> activeSources;
std::atomic<UpdateType> updated;