diff options
Diffstat (limited to 'src/mbgl/renderer/update_parameters.hpp')
-rw-r--r-- | src/mbgl/renderer/update_parameters.hpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/mbgl/renderer/update_parameters.hpp b/src/mbgl/renderer/update_parameters.hpp new file mode 100644 index 0000000000..a00e01b973 --- /dev/null +++ b/src/mbgl/renderer/update_parameters.hpp @@ -0,0 +1,47 @@ +#pragma once + +#include <mbgl/map/mode.hpp> + +namespace mbgl { + +class TransformState; +class Scheduler; +class FileSource; +class AnnotationManager; + +namespace style { +class Style; +} // namespace style + +class UpdateParameters { +public: + UpdateParameters(float pixelRatio_, + MapDebugOptions debugOptions_, + const TransformState& transformState_, + Scheduler& workerScheduler_, + FileSource& fileSource_, + const MapMode mode_, + AnnotationManager& annotationManager_, + style::Style& style_) + : pixelRatio(pixelRatio_), + debugOptions(debugOptions_), + transformState(transformState_), + workerScheduler(workerScheduler_), + fileSource(fileSource_), + mode(mode_), + annotationManager(annotationManager_), + style(style_) {} + + float pixelRatio; + MapDebugOptions debugOptions; + const TransformState& transformState; + Scheduler& workerScheduler; + FileSource& fileSource; + const MapMode mode; + AnnotationManager& annotationManager; + + // TODO: remove + style::Style& style; +}; + +} // namespace mbgl |