diff options
Diffstat (limited to 'src/mbgl/tile/raster_tile_worker.hpp')
-rw-r--r-- | src/mbgl/tile/raster_tile_worker.hpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mbgl/tile/raster_tile_worker.hpp b/src/mbgl/tile/raster_tile_worker.hpp index 44bc37ca5d..c99b6269ec 100644 --- a/src/mbgl/tile/raster_tile_worker.hpp +++ b/src/mbgl/tile/raster_tile_worker.hpp @@ -1,6 +1,8 @@ #pragma once +#include <mbgl/tile/tile_id.hpp> #include <mbgl/actor/actor_ref.hpp> +#include <mbgl/util/optional.hpp> #include <memory> #include <string> @@ -9,14 +11,25 @@ namespace mbgl { class RasterTile; +namespace style { +class Layer; +} // namespace style + class RasterTileWorker { public: - RasterTileWorker(ActorRef<RasterTileWorker>, ActorRef<RasterTile>); + RasterTileWorker(ActorRef<RasterTileWorker>, ActorRef<RasterTile>, OverscaledTileID); + ~RasterTileWorker(); + void setLayers(std::vector<std::unique_ptr<style::Layer>>); void parse(std::shared_ptr<const std::string> data); private: ActorRef<RasterTile> parent; + + const OverscaledTileID id; + + // Outer optional indicates whether we've received it or not. + optional<std::vector<std::unique_ptr<style::Layer>>> layers; }; } // namespace mbgl |