summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_light.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/render_light.cpp')
-rw-r--r--src/mbgl/renderer/render_light.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/mbgl/renderer/render_light.cpp b/src/mbgl/renderer/render_light.cpp
index faf89bf9e2..134e1829e0 100644
--- a/src/mbgl/renderer/render_light.cpp
+++ b/src/mbgl/renderer/render_light.cpp
@@ -2,12 +2,21 @@
namespace mbgl {
-RenderLight::RenderLight(const style::Light light_)
- : light(std::move(light_)) {
+RenderLight::RenderLight(std::shared_ptr<const style::Light::Impl> impl_)
+ : impl(std::move(impl_)) {
+}
+
+RenderLight::RenderLight(std::shared_ptr<const style::Light::Impl> impl_, const TransitioningLight transitioning_)
+ : impl(std::move(impl_))
+ , transitioning(transitioning_) {
+}
+
+std::unique_ptr<RenderLight> RenderLight::copy(std::shared_ptr<const style::Light::Impl> impl_) const {
+ return std::make_unique<RenderLight>(std::move(impl_), transitioning);
}
void RenderLight::transition(const CascadeParameters& parameters) {
- transitioning = TransitioningLight(light.properties, std::move(transitioning), parameters);
+ transitioning = TransitioningLight(impl->properties, std::move(transitioning), parameters);
}
void RenderLight::evaluate(const PropertyEvaluationParameters& parameters) {