diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-26 16:39:56 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-02 14:51:39 -0700 |
commit | c902f9098b331302aaa1baac77d1575db624a132 (patch) | |
tree | 211901cd04454aedbac40c469198438e46d7038c /src/mbgl/style/update_parameters.hpp | |
parent | 18149cbcc27a926f280b08d8d0e09104b2147688 (diff) | |
download | qtlocation-mapboxgl-c902f9098b331302aaa1baac77d1575db624a132.tar.gz |
[core] Rationalize naming for style-related code
Diffstat (limited to 'src/mbgl/style/update_parameters.hpp')
-rw-r--r-- | src/mbgl/style/update_parameters.hpp | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/mbgl/style/update_parameters.hpp b/src/mbgl/style/update_parameters.hpp new file mode 100644 index 0000000000..9faaa32d6f --- /dev/null +++ b/src/mbgl/style/update_parameters.hpp @@ -0,0 +1,58 @@ +#pragma once + +#include <mbgl/map/mode.hpp> + +namespace mbgl { + +class TransformState; +class Worker; +class FileSource; +namespace gl { class TexturePool; } +class AnnotationManager; + +namespace style { + +class Style; + +class UpdateParameters { +public: + UpdateParameters(float pixelRatio_, + MapDebugOptions debugOptions_, + TimePoint animationTime_, + const TransformState& transformState_, + Worker& worker_, + FileSource& fileSource_, + gl::TexturePool& texturePool_, + bool shouldReparsePartialTiles_, + const MapMode mode_, + AnnotationManager& annotationManager_, + Style& style_) + : pixelRatio(pixelRatio_), + debugOptions(debugOptions_), + animationTime(animationTime_), + transformState(transformState_), + worker(worker_), + fileSource(fileSource_), + texturePool(texturePool_), + shouldReparsePartialTiles(shouldReparsePartialTiles_), + mode(mode_), + annotationManager(annotationManager_), + style(style_) {} + + float pixelRatio; + MapDebugOptions debugOptions; + TimePoint animationTime; + const TransformState& transformState; + Worker& worker; + FileSource& fileSource; + gl::TexturePool& texturePool; + bool shouldReparsePartialTiles; + const MapMode mode; + AnnotationManager& annotationManager; + + // TODO: remove + Style& style; +}; + +} // namespace style +} // namespace mbgl |