summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2018-12-06 13:31:42 +0200
committerChris Loer <chris.loer@mapbox.com>2018-12-11 11:46:16 -0800
commit70c2d5a4cabcd87bc4e6e564fcd6dfa10bd4c521 (patch)
tree5e514c52d9709d3f89263f53dd005aa7287e9b00 /src
parent13e117b5016769f77dc6b3d3023f6c068e5a92ff (diff)
downloadqtlocation-mapboxgl-70c2d5a4cabcd87bc4e6e564fcd6dfa10bd4c521.tar.gz
[core, darwin, android] Add onDidEnterIdle to MapObserver.
didEnterIdle fires whenever render completes and no repaint is scheduled.
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/map/map.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index c3bebae837..5e80f1512b 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -209,6 +209,8 @@ void Map::Impl::onDidFinishRenderingFrame(RenderMode renderMode, bool needsRepai
if (needsRepaint || transform.inTransition()) {
onUpdate();
+ } else if (rendererFullyLoaded) {
+ observer.onDidEnterIdle();
}
} else if (stillImageRequest && rendererFullyLoaded) {
auto request = std::move(stillImageRequest);