summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-04-01 15:57:44 +0200
committerKonstantin Käfer <mail@kkaefer.com>2019-04-05 11:49:17 +0200
commita782a6d15b80dd83105604f3f779f6c83ba222e5 (patch)
tree62d83196baf28554cdd3144691b8210cc998af4a /include/mbgl
parent865f8a6c03540e329ed6caef354799fb58b7ab6e (diff)
downloadqtlocation-mapboxgl-a782a6d15b80dd83105604f3f779f6c83ba222e5.tar.gz
[core] move BackendScope to gfx namespace
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/gfx/backend_scope.hpp (renamed from include/mbgl/renderer/backend_scope.hpp)3
-rw-r--r--include/mbgl/renderer/renderer_backend.hpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/include/mbgl/renderer/backend_scope.hpp b/include/mbgl/gfx/backend_scope.hpp
index 73bafc84c7..b92334ae0f 100644
--- a/include/mbgl/renderer/backend_scope.hpp
+++ b/include/mbgl/gfx/backend_scope.hpp
@@ -4,6 +4,8 @@ namespace mbgl {
class RendererBackend;
+namespace gfx {
+
class BackendScope {
public:
// There are two types of scopes: Creating an "Implicit" scope tells Mapbox GL that the
@@ -32,4 +34,5 @@ private:
bool activated = false;
};
+} // namespace gfx
} // namespace mbgl
diff --git a/include/mbgl/renderer/renderer_backend.hpp b/include/mbgl/renderer/renderer_backend.hpp
index 1d5f4e8f4e..f75d00ebb3 100644
--- a/include/mbgl/renderer/renderer_backend.hpp
+++ b/include/mbgl/renderer/renderer_backend.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <mbgl/renderer/backend_scope.hpp>
+#include <mbgl/gfx/backend_scope.hpp>
#include <mbgl/util/image.hpp>
#include <mbgl/util/size.hpp>
#include <mbgl/util/util.hpp>
@@ -82,7 +82,7 @@ protected:
private:
std::once_flag initialized;
- friend class BackendScope;
+ friend class gfx::BackendScope;
};
MBGL_CONSTEXPR bool operator==(const RendererBackend& a, const RendererBackend& b) {