diff options
Diffstat (limited to 'include/mbgl/platform/default/offscreen_view.hpp')
-rw-r--r-- | include/mbgl/platform/default/offscreen_view.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mbgl/platform/default/offscreen_view.hpp b/include/mbgl/platform/default/offscreen_view.hpp index 034aa3aaf3..0e839e14cc 100644 --- a/include/mbgl/platform/default/offscreen_view.hpp +++ b/include/mbgl/platform/default/offscreen_view.hpp @@ -14,17 +14,17 @@ class Context; class OffscreenView : public View { public: - OffscreenView(gl::Context&, std::array<uint16_t, 2> size = {{ 256, 256 }}); + OffscreenView(gl::Context&, Size size = { 256, 256 }); void bind() override; PremultipliedImage readStillImage(); - std::array<uint16_t, 2> getSize() const; +public: + const Size size; private: gl::Context& context; - std::array<uint16_t, 2> size; optional<gl::Framebuffer> framebuffer; optional<gl::Renderbuffer<gl::RenderbufferType::RGBA>> color; optional<gl::Renderbuffer<gl::RenderbufferType::DepthStencil>> depthStencil; |