summaryrefslogtreecommitdiff
path: root/include/mbgl/map/backend_scope.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/map/backend_scope.hpp')
-rw-r--r--include/mbgl/map/backend_scope.hpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/include/mbgl/map/backend_scope.hpp b/include/mbgl/map/backend_scope.hpp
deleted file mode 100644
index 4985cd197f..0000000000
--- a/include/mbgl/map/backend_scope.hpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#pragma once
-
-namespace mbgl {
-
-class Backend;
-
-class BackendScope {
-public:
- // There are two types of scopes: Creating an "Implicit" scope tells Mapbox GL that the
- // supporting windowing system has already activated the GL Backend and that no further actions
- // are required. Creating an "Explicit" scope actually enables the GL Backend, and disables it
- // when the BackendScope is destroyed.
- enum class ScopeType : bool {
- Implicit,
- Explicit,
- };
-
- BackendScope(Backend&, ScopeType = ScopeType::Explicit);
- ~BackendScope();
-
- // Returns true when there is currently a BackendScope active in this thread.
- static bool exists();
-
-private:
- BackendScope* priorScope;
- BackendScope* nextScope;
- Backend& backend;
- const ScopeType scopeType;
-};
-
-} // namespace mbgl