Merge pull request #718 from mapbox/cli-render

CLI render
This commit is contained in:
John Firebaugh
2014-12-18 18:00:33 -08:00
6 changed files with 236 additions and 105 deletions

View File

@@ -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;