From fc9b958bb82cf9ca99c824989c2711f5cce4935e Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 20 Apr 2015 18:18:44 -0700 Subject: [PATCH] updateAnnotationTiles is called within invoke* --- src/mbgl/map/map_context.cpp | 2 +- src/mbgl/map/map_context.hpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 1fd6f89df..28f394d85 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -298,7 +298,7 @@ void MapContext::updateTiles() { } void MapContext::updateAnnotationTiles(const std::vector& ids) { - assert(Environment::currentlyOn(ThreadType::Main)); + assert(Environment::currentlyOn(ThreadType::Map)); if (!style) return; for (const auto &source : style->sources) { if (source->info.type == SourceType::Annotations) { diff --git a/src/mbgl/map/map_context.hpp b/src/mbgl/map/map_context.hpp index e9e61844c..fd9347e61 100644 --- a/src/mbgl/map/map_context.hpp +++ b/src/mbgl/map/map_context.hpp @@ -57,13 +57,11 @@ public: return promise.get_future().get(); } + void updateAnnotationTiles(const std::vector& ids); double getTopOffsetPixelsForAnnotationSymbol(const std::string& symbol); void setSourceTileCacheSize(size_t size); void onLowMemory(); - // TODO: Make this private - public: void updateAnnotationTiles(const std::vector& ids); - // These can only be called from the Map thread. private: // Checks if render thread needs to pause