summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-12-12 15:01:09 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-12-12 15:01:09 +0100
commit21e9e0a5eafe494a98ca19babcd650107906510a (patch)
tree31176fbdeb666c3d7fe24b8113b4b3c25330463b /include
parent1fe545aee4c28f3a74dc365ca69b4725cd8daa77 (diff)
downloadqtlocation-mapboxgl-21e9e0a5eafe494a98ca19babcd650107906510a.tar.gz
set rendering mode so that we can skip intermediate renders for static images
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;