#ifndef MBGL_MAP_LIVE_TILE_DATA #define MBGL_MAP_LIVE_TILE_DATA #include #include namespace mbgl { class Style; class SourceInfo; class WorkRequest; class AnnotationTile; class LiveTileData : public TileData { public: LiveTileData(const TileID&, std::unique_ptr, Style&, const SourceInfo&, std::function callback); ~LiveTileData(); bool parsePending(std::function callback) override; void cancel() override; Bucket* getBucket(const StyleLayer&) override; private: Worker& worker; TileWorker tileWorker; std::unique_ptr workRequest; std::unique_ptr tile; // Contains all the Bucket objects for the tile. Buckets are render // objects and they get added by tile parsing operations. std::unordered_map> buckets; }; } #endif