summaryrefslogtreecommitdiff
path: root/include/mbgl/map/map.hpp
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2014-12-03 20:09:16 +1100
committerLeith Bade <leith@mapbox.com>2014-12-03 20:09:16 +1100
commit35b0e2bfbde5069630d17a446fd757185edf52cf (patch)
treee69d3d6c1da0242e9ddc4259e88a38d7c7754a48 /include/mbgl/map/map.hpp
parent8762d5a9b6d8e6da624ac86cd21d8a40efbc1895 (diff)
downloadqtlocation-mapboxgl-35b0e2bfbde5069630d17a446fd757185edf52cf.tar.gz
Fix names in Map
Diffstat (limited to 'include/mbgl/map/map.hpp')
-rw-r--r--include/mbgl/map/map.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 25cbf8bde1..2f81a2bd81 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -38,7 +38,7 @@ public:
~Map();
// Start the map render thread. It is asynchronous.
- void start(bool start_paused = false);
+ void start(bool startPaused = false);
// Stop the map render thread. This call will block until the map rendering thread stopped.
// The optional callback function will be invoked repeatedly until the map thread is stopped.
@@ -48,7 +48,7 @@ public:
void stop(stop_callback cb = nullptr, void *data = nullptr);
// Pauses the render thread. The render thread will stop running but will not be terminated and will not lose state until resumed.
- void pause(bool wait_for_pause = false);
+ void pause(bool waitForPause = false);
// Resumes a paused render thread
void resume();
@@ -76,7 +76,7 @@ public:
// Size
void resize(uint16_t width, uint16_t height, float ratio = 1);
- void resize(uint16_t width, uint16_t height, float ratio, uint16_t fb_width, uint16_t fb_height);
+ void resize(uint16_t width, uint16_t height, float ratio, uint16_t fbWidth, uint16_t fbHeight);
// Styling
void setAppliedClasses(const std::vector<std::string> &classes);
@@ -140,7 +140,7 @@ private:
uv::worker& getWorker();
// Checks if render thread needs to pause
- void check_for_pause();
+ void checkForPause();
// Setup
void setup();
@@ -166,11 +166,11 @@ private:
bool terminating = false;
bool pausing = false;
- bool is_paused = false;
- std::mutex mutex_run;
- std::condition_variable cond_run;
- std::mutex mutex_pause;
- std::condition_variable cond_pause;
+ bool isPaused = false;
+ std::mutex mutexRun;
+ std::condition_variable condRun;
+ std::mutex mutexPause;
+ std::condition_variable condPause;
// If cleared, the next time the render thread attempts to render the map, it will *actually*
// render the map.