summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/map/map_context.cpp')
-rw-r--r--src/mbgl/map/map_context.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp
index 75ca188fbb..f2c17824c3 100644
--- a/src/mbgl/map/map_context.cpp
+++ b/src/mbgl/map/map_context.cpp
@@ -311,16 +311,13 @@ void MapContext::onLowMemory() {
style->onLowMemory();
asyncInvalidate.send();
}
-
-void MapContext::onTileDataChanged() {
- assert(util::ThreadContext::currentlyOn(util::ThreadType::Map));
+
+void MapContext::onResourceLoaded() {
updateFlags |= Update::Repaint;
asyncUpdate.send();
}
-void MapContext::onResourceLoadingFailed(std::exception_ptr error) {
- assert(util::ThreadContext::currentlyOn(util::ThreadType::Map));
-
+void MapContext::onResourceError(std::exception_ptr error) {
if (data.mode == MapMode::Still && callback) {
callback(error, {});
callback = nullptr;