summaryrefslogtreecommitdiff
path: root/src/mbgl/map/raster_tile_data.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-06-04 17:22:47 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-07-01 15:21:09 -0700
commit217c376291967aecd7c8cc26e485e3a4fe09ee60 (patch)
treedfbb4b59e1e06e047793875740f4c8ce3ebf97d7 /src/mbgl/map/raster_tile_data.hpp
parent29a2cd908f6ed3d62ecfd113457074d1524d4f49 (diff)
downloadqtlocation-mapboxgl-217c376291967aecd7c8cc26e485e3a4fe09ee60.tar.gz
Push TileMembers members down hierarchy
Diffstat (limited to 'src/mbgl/map/raster_tile_data.hpp')
-rw-r--r--src/mbgl/map/raster_tile_data.hpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/mbgl/map/raster_tile_data.hpp b/src/mbgl/map/raster_tile_data.hpp
index fb59482eff..195698865d 100644
--- a/src/mbgl/map/raster_tile_data.hpp
+++ b/src/mbgl/map/raster_tile_data.hpp
@@ -7,10 +7,11 @@
namespace mbgl {
-class Painter;
class SourceInfo;
+class Request;
class StyleLayer;
class TexturePool;
+class WorkRequest;
class RasterTileData : public TileData {
public:
@@ -23,12 +24,20 @@ public:
bool reparse(Worker&, std::function<void ()> callback) override;
- void parse();
+ void cancel() override;
+
Bucket* getBucket(StyleLayer const &layer_desc) override;
-protected:
+private:
+ const SourceInfo& source;
+
+ Request *req = nullptr;
+ std::string data;
+
StyleLayoutRaster layout;
RasterBucket bucket;
+
+ std::unique_ptr<WorkRequest> workRequest;
};
}