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 /platform/ios/src | |
parent | 03dadb1cea7abd95c178a5eb3603b54b5cb1dcdb (diff) | |
download | qtlocation-mapboxgl-8af78ddbb9744f61d14f9e611aeffc08edd9ac0c.tar.gz |
[core] Update MapObserver::onDidFinishRenderingFrame() API
Diffstat (limited to 'platform/ios/src')
-rw-r--r-- | platform/ios/src/MGLMapView+Impl.h | 2 | ||||
-rw-r--r-- | platform/ios/src/MGLMapView+Impl.mm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/ios/src/MGLMapView+Impl.h b/platform/ios/src/MGLMapView+Impl.h index 66dc408274..232215bd1b 100644 --- a/platform/ios/src/MGLMapView+Impl.h +++ b/platform/ios/src/MGLMapView+Impl.h @@ -62,7 +62,7 @@ public: void onDidFinishLoadingMap() override; void onDidFailLoadingMap(mbgl::MapLoadError mapError, const std::string& what) override; void onWillStartRenderingFrame() override; - void onDidFinishRenderingFrame(mbgl::MapObserver::RenderMode, bool) override; + void onDidFinishRenderingFrame(mbgl::MapObserver::RenderFrameStatus) override; void onWillStartRenderingMap() override; void onDidFinishRenderingMap(mbgl::MapObserver::RenderMode) override; void onDidFinishLoadingStyle() override; diff --git a/platform/ios/src/MGLMapView+Impl.mm b/platform/ios/src/MGLMapView+Impl.mm index 76c9c0f9ba..9cdab4dc63 100644 --- a/platform/ios/src/MGLMapView+Impl.mm +++ b/platform/ios/src/MGLMapView+Impl.mm @@ -68,8 +68,8 @@ void MGLMapViewImpl::onWillStartRenderingFrame() { [mapView mapViewWillStartRenderingFrame]; } -void MGLMapViewImpl::onDidFinishRenderingFrame(mbgl::MapObserver::RenderMode mode, bool) { - bool fullyRendered = mode == mbgl::MapObserver::RenderMode::Full; +void MGLMapViewImpl::onDidFinishRenderingFrame(mbgl::MapObserver::RenderFrameStatus status) { + bool fullyRendered = status.mode == mbgl::MapObserver::RenderMode::Full; [mapView mapViewDidFinishRenderingFrameFullyRendered:fullyRendered]; } |