diff options
Diffstat (limited to 'src/mbgl/map/map_data.hpp')
-rw-r--r-- | src/mbgl/map/map_data.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mbgl/map/map_data.hpp b/src/mbgl/map/map_data.hpp index 98d2518a2c..55bf5f7f6e 100644 --- a/src/mbgl/map/map_data.hpp +++ b/src/mbgl/map/map_data.hpp @@ -3,6 +3,7 @@ #include <string> #include <mutex> +#include <atomic> namespace mbgl { @@ -25,10 +26,15 @@ public: styleInfo = info; } + inline bool getDebug() const { return debug; } + inline bool toggleDebug() { return debug ^= 1u; } + inline void setDebug(bool value) { debug = value; } + private: mutable std::mutex mtx; StyleInfo styleInfo; + std::atomic<uint8_t> debug; }; } |