Files
MapLibreParticleLab/src/mbgl/renderer/tile_parameters.hpp
Mikhail Pozdnyakov 5b6a262e15 [core] GeometryTile and TileLoader keep strong reference to FileSource
Thus we fix a potential bug: if `Renderer` outlives the `Map` it will hold a stale reference to the `FileSource` instance.
2019-05-14 11:29:24 +03:00

29 lines
563 B
C++

#pragma once
#include <mbgl/map/mode.hpp>
#include <memory>
namespace mbgl {
class TransformState;
class FileSource;
class AnnotationManager;
class ImageManager;
class GlyphManager;
class TileParameters {
public:
const float pixelRatio;
const MapDebugOptions debugOptions;
const TransformState& transformState;
std::shared_ptr<FileSource> fileSource;
const MapMode mode;
AnnotationManager& annotationManager;
ImageManager& imageManager;
GlyphManager& glyphManager;
const uint8_t prefetchZoomDelta;
};
} // namespace mbgl