diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2014-12-18 18:00:33 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2014-12-18 18:00:33 -0800 |
commit | 4a2cf4aa62b9f467f0757844b4a4c3dbf75fdc40 (patch) | |
tree | 1d8941347f425073147dbe87913569555b0d7489 /include | |
parent | a8dec01230a00f9e701fc6403110c4f5017ba905 (diff) | |
parent | e57c57516fd3dd2513b6bae579f38f2f404fa545 (diff) | |
download | qtlocation-mapboxgl-4a2cf4aa62b9f467f0757844b4a4c3dbf75fdc40.tar.gz |
Merge pull request #718 from mapbox/cli-render
CLI render
Diffstat (limited to 'include')
-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; |