summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/render_layer.hpp')
-rw-r--r--src/mbgl/renderer/render_layer.hpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mbgl/renderer/render_layer.hpp b/src/mbgl/renderer/render_layer.hpp
index 692fc85f29..cda67cfe15 100644
--- a/src/mbgl/renderer/render_layer.hpp
+++ b/src/mbgl/renderer/render_layer.hpp
@@ -35,6 +35,9 @@ public:
// Begin transitions for any properties that have changed since the last frame.
virtual void transition(const TransitionParameters&) = 0;
+ // Overloaded version for transitions to a new layer impl.
+ void transition(const TransitionParameters&, Immutable<style::Layer::Impl> newImpl);
+
// Fully evaluate possibly-transitioning paint properties based on a zoom level.
// Updates the contained `evaluatedProperties` member.
virtual void evaluate(const PropertyEvaluationParameters&) = 0;
@@ -75,15 +78,9 @@ public:
Immutable<style::LayerProperties> evaluatedProperties;
// Private implementation
Immutable<style::Layer::Impl> baseImpl;
- void setImpl(Immutable<style::Layer::Impl>);
virtual void markContextDestroyed();
- // TODO: Figure out how to remove this or whether layers other than
- // RenderHeatmapLayer and RenderLineLayer need paint property updates,
- // similar to color ramp. Temporarily moved to the base.
- virtual void update();
-
// TODO: Only for background layers.
virtual optional<Color> getSolidBackground() const;