diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-04-01 16:56:24 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-04-05 11:49:17 +0200 |
commit | 66c020034e8260e5e071481e68ab61cd264723ba (patch) | |
tree | b5263772d72175474d91ce2daa9dc037b99fab0d /src/mbgl/gl/context.hpp | |
parent | a782a6d15b80dd83105604f3f779f6c83ba222e5 (diff) | |
download | qtlocation-mapboxgl-66c020034e8260e5e071481e68ab61cd264723ba.tar.gz |
[core] refactor RendererBackend
Diffstat (limited to 'src/mbgl/gl/context.hpp')
-rw-r--r-- | src/mbgl/gl/context.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp index 2fb1d242ce..0fad92f3df 100644 --- a/src/mbgl/gl/context.hpp +++ b/src/mbgl/gl/context.hpp @@ -27,6 +27,7 @@ namespace gl { constexpr size_t TextureMax = 64; using ProcAddress = void (*)(); +class RendererBackend; namespace extension { class VertexArray; @@ -36,7 +37,7 @@ class ProgramBinary; class Context final : public gfx::Context { public: - Context(); + Context(RendererBackend&); ~Context() override; Context(const Context&) = delete; Context& operator=(const Context& other) = delete; @@ -136,6 +137,7 @@ public: } private: + RendererBackend& backend; bool cleanupOnDestruction = true; std::unique_ptr<extension::Debugging> debugging; |