summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-06-01 21:31:19 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-06-13 13:37:41 +0300
commit28eb2e635417c7fb8d746a9ed1d76774066098b3 (patch)
treeb4968e1f7ee53bdc37577a530d9487a05db1d72d /include/mbgl/map
parent672ba516f225b231077baa0e3f6ae0749ee9c295 (diff)
downloadqtlocation-mapboxgl-28eb2e635417c7fb8d746a9ed1d76774066098b3.tar.gz
[core] Added Backend::{assume,set}Viewport
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/backend.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/map/backend.hpp b/include/mbgl/map/backend.hpp
index 884c4b5256..23a75b82ae 100644
--- a/include/mbgl/map/backend.hpp
+++ b/include/mbgl/map/backend.hpp
@@ -61,7 +61,7 @@ protected:
// Tells the renderer that OpenGL state has already been set by the windowing toolkit.
// It sets the internal assumed state to the supplied values.
void assumeFramebufferBinding(gl::FramebufferID fbo);
- void assumeViewportSize(const Size&);
+ void assumeViewport(int32_t x, int32_t y, const Size&);
// Returns true when assumed framebuffer binding hasn't changed from the implicit binding.
bool implicitFramebufferBound();
@@ -69,7 +69,7 @@ protected:
// Triggers an OpenGL state update if the internal assumed state doesn't match the
// supplied values.
void setFramebufferBinding(gl::FramebufferID fbo);
- void setViewportSize(const Size&);
+ void setViewport(int32_t x, int32_t y, const Size&);
protected:
std::unique_ptr<gl::Context> context;