blob: 568892216c44274d5bcf9b54287033e99dd16706 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef MBGL_MAP_LIVE_TILE_DATA
#define MBGL_MAP_LIVE_TILE_DATA
#include <mbgl/map/tile_data.hpp>
#include <mbgl/map/tile_worker.hpp>
namespace mbgl {
class Style;
class SourceInfo;
class WorkRequest;
class AnnotationTile;
class LiveTileData : public TileData {
public:
LiveTileData(const TileID&,
std::unique_ptr<AnnotationTile>,
Style&,
const SourceInfo&,
std::function<void ()> callback);
~LiveTileData();
bool parsePending(std::function<void ()> callback) override;
void cancel() override;
Bucket* getBucket(const StyleLayer&) override;
private:
Worker& worker;
TileWorker tileWorker;
std::unique_ptr<WorkRequest> workRequest;
std::unique_ptr<AnnotationTile> tile;
// Contains all the Bucket objects for the tile. Buckets are render
// objects and they get added by tile parsing operations.
std::unordered_map<std::string, std::unique_ptr<Bucket>> buckets;
};
}
#endif
|