diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/backend.hpp | 5 | ||||
-rw-r--r-- | include/mbgl/map/backend_scope.hpp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/mbgl/map/backend.hpp b/include/mbgl/map/backend.hpp index 884c4b5256..69a998709b 100644 --- a/include/mbgl/map/backend.hpp +++ b/include/mbgl/map/backend.hpp @@ -3,6 +3,7 @@ #include <mbgl/map/map_observer.hpp> #include <mbgl/util/image.hpp> #include <mbgl/util/size.hpp> +#include <mbgl/util/util.hpp> #include <memory> #include <mutex> @@ -80,4 +81,8 @@ private: friend class BackendScope; }; +constexpr bool operator==(const Backend& a, const Backend& b) { + return &a == &b; +} + } // namespace mbgl diff --git a/include/mbgl/map/backend_scope.hpp b/include/mbgl/map/backend_scope.hpp index 4985cd197f..322c17b3fc 100644 --- a/include/mbgl/map/backend_scope.hpp +++ b/include/mbgl/map/backend_scope.hpp @@ -22,10 +22,14 @@ public: static bool exists(); private: + void activate(); + void deactivate(); + BackendScope* priorScope; BackendScope* nextScope; Backend& backend; const ScopeType scopeType; + bool activated = false; }; } // namespace mbgl |