#pragma once #include #include namespace mbgl { class RasterTileSource; class AsyncRequest; namespace gl { class TexturePool; } namespace style { class Layer; } class RasterTileData : public TileData { public: RasterTileData(const OverscaledTileID&, gl::TexturePool&, Worker&, const std::function& callback); ~RasterTileData(); void setData(std::exception_ptr err, std::shared_ptr data, optional modified_, optional expires_); void cancel() override; Bucket* getBucket(const style::Layer&) override; private: gl::TexturePool& texturePool; Worker& worker; std::unique_ptr workRequest; // Contains the Bucket object for the tile. Buckets are render // objects and they get added by tile parsing operations. std::unique_ptr bucket; const std::function callback; }; } // namespace mbgl