summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/raster_tile_data.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-06 17:15:23 -0700
committerKonstantin Käfer <mail@kkaefer.com>2016-06-10 12:42:14 +0200
commitb45713e5e98b31b73ab1aaa278bf746116a345fc (patch)
tree7b3ff6ac998ff3793c18df7c43404d715cdf839c /src/mbgl/tile/raster_tile_data.hpp
parentdbf16440a6ae8dedc408d8345e1527a516a42a1d (diff)
downloadqtlocation-mapboxgl-b45713e5e98b31b73ab1aaa278bf746116a345fc.tar.gz
[core] Eliminate TileData dependency on TileSource
Diffstat (limited to 'src/mbgl/tile/raster_tile_data.hpp')
-rw-r--r--src/mbgl/tile/raster_tile_data.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/tile/raster_tile_data.hpp b/src/mbgl/tile/raster_tile_data.hpp
index 5f2478745b..f3110c1296 100644
--- a/src/mbgl/tile/raster_tile_data.hpp
+++ b/src/mbgl/tile/raster_tile_data.hpp
@@ -8,6 +8,7 @@ namespace mbgl {
class RasterTileSource;
class AsyncRequest;
class Tileset;
+class TileSource;
namespace gl { class TexturePool; }
@@ -23,6 +24,8 @@ public:
const Tileset&);
~RasterTileData();
+ void setNecessity(Necessity) final;
+
void setError(std::exception_ptr err);
void setData(std::shared_ptr<const std::string> data,
@@ -36,6 +39,7 @@ private:
gl::TexturePool& texturePool;
Worker& worker;
+ std::unique_ptr<TileSource> tileSource;
std::unique_ptr<AsyncRequest> workRequest;
// Contains the Bucket object for the tile. Buckets are render