diff options
Diffstat (limited to 'src/mbgl/map/tile_data.hpp')
-rw-r--r-- | src/mbgl/map/tile_data.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mbgl/map/tile_data.hpp b/src/mbgl/map/tile_data.hpp index 7f16e7c413..3945a32147 100644 --- a/src/mbgl/map/tile_data.hpp +++ b/src/mbgl/map/tile_data.hpp @@ -45,7 +45,13 @@ public: ~TileData(); void request(Worker&, float pixelRatio, std::function<void ()> callback); - void reparse(Worker&, std::function<void ()> callback); + + // Schedule a tile reparse on a worker thread and call the callback on + // completion. It will return true if the work was schedule or false it was + // not, which can occur if the tile is already being parsed by another + // worker (see "mayStartParsing()"). + bool reparse(Worker&, std::function<void ()> callback); + void cancel(); const std::string toString() const; |