diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-08-24 19:57:16 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-08-24 20:02:39 +0300 |
commit | 1d7a5b0fe0bc3d69cc77cfb654876ad3db2ea33a (patch) | |
tree | 2584ce377d31eb24a0af06a11b94d64d4de7cea5 /include/mbgl/platform/default | |
parent | c98f4f476bd590bdfd78409d428459e40347302a (diff) | |
download | qtlocation-mapboxgl-1d7a5b0fe0bc3d69cc77cfb654876ad3db2ea33a.tar.gz |
[tests] Add unit test for style loading failures
Diffstat (limited to 'include/mbgl/platform/default')
-rw-r--r-- | include/mbgl/platform/default/headless_view.hpp | 4 |
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; |