diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-05-19 00:28:55 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-05-22 10:44:18 +0300 |
commit | ac64bef87f5c0b3d23be59de984fd93eb7f2378f (patch) | |
tree | fadbdf96d5b0f9e6c64f1fefbc2a7f3e7e4d4a12 /src/mbgl/map/tile_data.hpp | |
parent | 7274d2e195b419babbc8c10e99af4f6d7803195f (diff) | |
download | qtlocation-mapboxgl-ac64bef87f5c0b3d23be59de984fd93eb7f2378f.tar.gz |
Notify failures when loading tiles
Diffstat (limited to 'src/mbgl/map/tile_data.hpp')
-rw-r--r-- | src/mbgl/map/tile_data.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mbgl/map/tile_data.hpp b/src/mbgl/map/tile_data.hpp index 3945a32147..0d34b2df74 100644 --- a/src/mbgl/map/tile_data.hpp +++ b/src/mbgl/map/tile_data.hpp @@ -44,7 +44,10 @@ public: TileData(const TileID&, const SourceInfo&); ~TileData(); - void request(Worker&, float pixelRatio, std::function<void ()> callback); + void request(Worker&, + float pixelRatio, + const std::function<void()>& successCallback, + const std::function<void(const std::string& message)>& failureCallback); // 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 |