summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/update_parameters.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-07-11 19:15:10 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-07-12 20:42:29 +0300
commit2fae373fc9da1a5ed61b5114d8c982073734826d (patch)
tree105ce580cc7df0cf9cf0a9997c4702bc76b3faeb /src/mbgl/renderer/update_parameters.hpp
parent21031b624ffabf92bf284c830b3d13a3ae045460 (diff)
downloadqtlocation-mapboxgl-2fae373fc9da1a5ed61b5114d8c982073734826d.tar.gz
[core] GCC 4.9 is unable to deduce ctors when using bracket init
Diffstat (limited to 'src/mbgl/renderer/update_parameters.hpp')
-rw-r--r--src/mbgl/renderer/update_parameters.hpp35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/mbgl/renderer/update_parameters.hpp b/src/mbgl/renderer/update_parameters.hpp
index 8ebcd11e21..04b59699b3 100644
--- a/src/mbgl/renderer/update_parameters.hpp
+++ b/src/mbgl/renderer/update_parameters.hpp
@@ -16,6 +16,39 @@ class AnnotationManager;
class UpdateParameters {
public:
+ UpdateParameters(const MapMode mode_,
+ const float pixelRatio_,
+ const MapDebugOptions debugOptions_,
+ const TimePoint timePoint_,
+ const TransformState TransformState_,
+ const std::string glyphURL_,
+ const bool spriteLoaded_,
+ const style::TransitionOptions transitionOptions_,
+ const Immutable<style::Light::Impl> light_,
+ const Immutable<std::vector<Immutable<style::Image::Impl>>> images_,
+ const Immutable<std::vector<Immutable<style::Source::Impl>>> sources_,
+ const Immutable<std::vector<Immutable<style::Layer::Impl>>> layers_,
+ Scheduler& scheduler_,
+ FileSource& fileSource_,
+ AnnotationManager& annotationManager_,
+ const uint8_t prefetchZoomDelta_)
+ : mode(mode_),
+ pixelRatio(pixelRatio_),
+ debugOptions(debugOptions_),
+ timePoint(std::move(timePoint_)),
+ transformState(std::move(TransformState_)),
+ glyphURL(std::move(glyphURL_)),
+ spriteLoaded(spriteLoaded_),
+ transitionOptions(std::move(transitionOptions_)),
+ light(std::move(light_)),
+ images(std::move(images_)),
+ sources(std::move(sources_)),
+ layers(std::move(layers_)),
+ scheduler(scheduler_),
+ fileSource(fileSource_),
+ annotationManager(annotationManager_),
+ prefetchZoomDelta(prefetchZoomDelta_) {}
+
const MapMode mode;
const float pixelRatio;
const MapDebugOptions debugOptions;
@@ -34,7 +67,7 @@ public:
FileSource& fileSource;
AnnotationManager& annotationManager;
- const uint8_t prefetchZoomDelta = 0;
+ const uint8_t prefetchZoomDelta;
};
} // namespace mbgl