Files
MapLibreParticleLab/src/mbgl/map/raster_tile_data.hpp
Konstantin Käfer 9781785ab7 scope Requests to an Environment object for easier cancelation
we are now scoping all file requests to an environment object. The FileSource implementation treats
this as an opaque pointer, but allows canceling all Requests that are associated with that pointer.
This is necessary to abort all file requests that originated from a particular Map object. Aborting
a file request is different from canceling a file request: A canceled request doesn't have its
callback called, while an aborted request will have its callback called with an error, indicating
that the environment is going to be shut down.
2015-03-06 08:21:47 -08:00

35 lines
762 B
C++

#ifndef MBGL_MAP_RASTER_TILE_DATA
#define MBGL_MAP_RASTER_TILE_DATA
#include <mbgl/map/tile.hpp>
#include <mbgl/map/tile_data.hpp>
#include <mbgl/style/style_layout.hpp>
#include <mbgl/renderer/raster_bucket.hpp>
namespace mbgl {
class Painter;
class SourceInfo;
class StyleLayer;
class TexturePool;
class RasterTileData : public TileData {
friend class TileParser;
public:
RasterTileData(Tile::ID const &id, TexturePool &, const SourceInfo &, Environment &);
~RasterTileData();
void parse() override;
void render(Painter &painter, const StyleLayer &layer_desc, const mat4 &matrix) override;
bool hasData(StyleLayer const &layer_desc) const override;
protected:
StyleLayoutRaster layout;
RasterBucket bucket;
};
}
#endif