diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-23 11:11:12 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-28 14:32:24 -0400 |
commit | 230027e5140a8aa3c6cb24ddf3f5aee20506ac8f (patch) | |
tree | 979fbd2cd84fedbb1bdb04c3968fafb1264264f9 /include/mbgl/map/view.hpp | |
parent | a625ba8a0976ef8417a2609700187c5633be2c58 (diff) | |
download | qtlocation-mapboxgl-230027e5140a8aa3c6cb24ddf3f5aee20506ac8f.tar.gz |
Resize view from map thread
Diffstat (limited to 'include/mbgl/map/view.hpp')
-rw-r--r-- | include/mbgl/map/view.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/map/view.hpp b/include/mbgl/map/view.hpp index b736290169..41d57bdc91 100644 --- a/include/mbgl/map/view.hpp +++ b/include/mbgl/map/view.hpp @@ -40,6 +40,9 @@ public: virtual void notify() = 0; + // Called from the render thread. The implementation should resize the framebuffer. + virtual void resize(uint16_t width, uint16_t height, float pixelRatio); + // Called from the render thread. The implementation must trigger a rerender. // (i.e. either the passed render() function for rendering immediately on the map thread, // or map->renderSync() from the main thread must be called as a result of this) |