blob: 62d21d28c4f2385ff48582997524dc0fe9e96c11 (
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
|
#pragma once
#include <mbgl/tile/tile_data.hpp>
#include <mbgl/renderer/raster_bucket.hpp>
namespace mbgl {
class FileSource;
class AsyncRequest;
namespace gl { class TexturePool; }
namespace style {
class Layer;
}
class RasterTileData : public TileData {
public:
RasterTileData(const OverscaledTileID&,
float pixelRatio,
const std::string& urlTemplate,
gl::TexturePool&,
Worker&,
FileSource&,
const std::function<void(std::exception_ptr)>& callback);
~RasterTileData();
void cancel() override;
Bucket* getBucket(const style::Layer&) override;
private:
gl::TexturePool& texturePool;
Worker& worker;
std::unique_ptr<AsyncRequest> req;
std::unique_ptr<Bucket> bucket;
std::unique_ptr<AsyncRequest> workRequest;
};
} // namespace mbgl
|