diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-07-24 17:35:26 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-07-24 17:35:26 -0700 |
commit | cd169207cb3951c00d3ee497b19497534dff4ab3 (patch) | |
tree | 5a44428007737560396c7f31e9ad6b34eddc9f8a | |
parent | a1782481393ad7fe5fa976bda348127248c6bd3b (diff) | |
download | qtlocation-mapboxgl-upstream/offscreen-texture.tar.gz |
[core] OffscreenTexture does not need to implement Viewupstream/offscreen-texture
It's not used in a polymorphic context, and doesn't need to be.
-rw-r--r-- | src/mbgl/util/offscreen_texture.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/util/offscreen_texture.hpp b/src/mbgl/util/offscreen_texture.hpp index c265700555..0353f3f9c5 100644 --- a/src/mbgl/util/offscreen_texture.hpp +++ b/src/mbgl/util/offscreen_texture.hpp @@ -1,6 +1,5 @@ #pragma once -#include <mbgl/map/view.hpp> #include <mbgl/util/image.hpp> namespace mbgl { @@ -15,16 +14,16 @@ enum class OffscreenTextureAttachment { Depth, }; -class OffscreenTexture : public View { +class OffscreenTexture { public: OffscreenTexture(gl::Context&, Size size = { 256, 256 }, OffscreenTextureAttachment type = OffscreenTextureAttachment::None); - ~OffscreenTexture() override; + ~OffscreenTexture(); OffscreenTexture(OffscreenTexture&&); OffscreenTexture& operator=(OffscreenTexture&&); - void bind() override; + void bind(); PremultipliedImage readStillImage(); |