summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-08-24 19:57:16 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-08-24 20:02:39 +0300
commit1d7a5b0fe0bc3d69cc77cfb654876ad3db2ea33a (patch)
tree2584ce377d31eb24a0af06a11b94d64d4de7cea5 /include
parentc98f4f476bd590bdfd78409d428459e40347302a (diff)
downloadqtlocation-mapboxgl-1d7a5b0fe0bc3d69cc77cfb654876ad3db2ea33a.tar.gz
[tests] Add unit test for style loading failures
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/platform/default/headless_view.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/platform/default/headless_view.hpp b/include/mbgl/platform/default/headless_view.hpp
index 989c226694..89716643d4 100644
--- a/include/mbgl/platform/default/headless_view.hpp
+++ b/include/mbgl/platform/default/headless_view.hpp
@@ -43,10 +43,12 @@ public:
void invalidate() override;
void activate() override;
void deactivate() override;
+ void notifyMapChange(MapChange) override;
PremultipliedImage readStillImage() override;
void resize(uint16_t width, uint16_t height);
+ void setMapChangeCallback(std::function<void(MapChange)>&& cb) { mapChangeCallback = std::move(cb); }
private:
// Implementation specific functions
@@ -85,6 +87,8 @@ private:
GLXPbuffer glxPbuffer = 0;
#endif
+ std::function<void(MapChange)> mapChangeCallback;
+
GLuint fbo = 0;
GLuint fboDepthStencil = 0;
GLuint fboColor = 0;