diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-12-12 15:01:09 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-12-12 15:01:09 +0100 |
commit | 21e9e0a5eafe494a98ca19babcd650107906510a (patch) | |
tree | 31176fbdeb666c3d7fe24b8113b4b3c25330463b /include/mbgl/map | |
parent | 1fe545aee4c28f3a74dc365ca69b4725cd8daa77 (diff) | |
download | qtlocation-mapboxgl-21e9e0a5eafe494a98ca19babcd650107906510a.tar.gz |
set rendering mode so that we can skip intermediate renders for static images
Diffstat (limited to 'include/mbgl/map')
-rw-r--r-- | include/mbgl/map/map.hpp | 9 |
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; |