diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-11 19:01:37 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-12 00:40:08 +0300 |
commit | 8af78ddbb9744f61d14f9e611aeffc08edd9ac0c (patch) | |
tree | a1829f17b377f8a1bf0a622b1ff83a81df15f851 /test | |
parent | 03dadb1cea7abd95c178a5eb3603b54b5cb1dcdb (diff) | |
download | qtlocation-mapboxgl-8af78ddbb9744f61d14f9e611aeffc08edd9ac0c.tar.gz |
[core] Update MapObserver::onDidFinishRenderingFrame() API
Diffstat (limited to 'test')
-rw-r--r-- | test/map/map.test.cpp | 2 | ||||
-rw-r--r-- | test/src/mbgl/test/stub_map_observer.hpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp index 8cb781c6df..c2a79f5f1b 100644 --- a/test/map/map.test.cpp +++ b/test/map/map.test.cpp @@ -762,7 +762,7 @@ TEST(Map, TEST_DISABLED_ON_CI(ContinuousRendering)) { HeadlessFrontend frontend(1); StubMapObserver observer; - observer.didFinishRenderingFrameCallback = [&] (MapObserver::RenderMode) { + observer.didFinishRenderingFrameCallback = [&] (MapObserver::RenderFrameStatus) { // Start a timer that ends the test one second from now. If we are continuing to render // indefinitely, the timer will be constantly restarted and never trigger. Instead, the // emergency shutoff above will trigger, failing the test. diff --git a/test/src/mbgl/test/stub_map_observer.hpp b/test/src/mbgl/test/stub_map_observer.hpp index da150ea83c..89ee4e7953 100644 --- a/test/src/mbgl/test/stub_map_observer.hpp +++ b/test/src/mbgl/test/stub_map_observer.hpp @@ -32,9 +32,9 @@ public: } } - void onDidFinishRenderingFrame(RenderMode mode, bool) final { + void onDidFinishRenderingFrame(RenderFrameStatus status) final { if (didFinishRenderingFrameCallback) { - didFinishRenderingFrameCallback(mode); + didFinishRenderingFrameCallback(status); } } @@ -42,7 +42,7 @@ public: std::function<void()> didFinishLoadingMapCallback; std::function<void()> didFailLoadingMapCallback; std::function<void()> didFinishLoadingStyleCallback; - std::function<void(RenderMode)> didFinishRenderingFrameCallback; + std::function<void(RenderFrameStatus)> didFinishRenderingFrameCallback; }; |