summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 245aaf9ea7..45846170c2 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -136,7 +136,14 @@ private:
// Unconditionally performs a render with the current map state.
void render();
- bool async = false;
+ enum class Mode : uint8_t {
+ None, // we're not doing any processing
+ Continuous, // continually updating map
+ Static, // a once-off static image.
+ };
+
+ Mode mode = Mode::None;
+
std::unique_ptr<uv::loop> loop;
std::unique_ptr<uv::worker> workers;
std::thread thread;