diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-18 10:48:51 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-18 15:15:24 -0800 |
commit | 7b39ce95210ceb6640b3a3399dacd1d0e826ac1f (patch) | |
tree | eb97fdc8a284826d3a3fe9426a8a10f88a654799 /src/mbgl/tile/raster_tile_data.cpp | |
parent | d5eb5240f8c35016927e89bf9d186addc09b83fa (diff) | |
download | qtlocation-mapboxgl-7b39ce95210ceb6640b3a3399dacd1d0e826ac1f.tar.gz |
[core] Remove ThreadContext::getFileSource; instead thread FileSource through
Diffstat (limited to 'src/mbgl/tile/raster_tile_data.cpp')
-rw-r--r-- | src/mbgl/tile/raster_tile_data.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/tile/raster_tile_data.cpp b/src/mbgl/tile/raster_tile_data.cpp index 25b20e42c2..3f26bbdfdd 100644 --- a/src/mbgl/tile/raster_tile_data.cpp +++ b/src/mbgl/tile/raster_tile_data.cpp @@ -13,6 +13,7 @@ RasterTileData::RasterTileData(const TileID& id_, const std::string& urlTemplate, gl::TexturePool &texturePool_, Worker& worker_, + FileSource& fileSource, const std::function<void(std::exception_ptr)>& callback) : TileData(id_), texturePool(texturePool_), @@ -20,7 +21,7 @@ RasterTileData::RasterTileData(const TileID& id_, state = State::loading; const Resource resource = Resource::tile(urlTemplate, pixelRatio, id.x, id.y, id.sourceZ); - req = util::ThreadContext::getFileSource()->request(resource, [callback, this](Response res) { + req = fileSource.request(resource, [callback, this](Response res) { if (res.error) { callback(std::make_exception_ptr(std::runtime_error(res.error->message))); } else if (res.notModified) { |