diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-04-10 15:11:48 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-04-17 17:21:41 +0300 |
commit | b96d824b2de44d210a8e06fc7c6c4f05c4e98fe2 (patch) | |
tree | e025ba720d76f5a96e2132c3612b048d85dfd141 /src/mbgl/renderer/render_layer.hpp | |
parent | 150b427300af6425e78a687ce275feae4a7ccc9d (diff) | |
download | qtlocation-mapboxgl-b96d824b2de44d210a8e06fc7c6c4f05c4e98fe2.tar.gz |
[core] Simplify RenderLayer interface.
Diffstat (limited to 'src/mbgl/renderer/render_layer.hpp')
-rw-r--r-- | src/mbgl/renderer/render_layer.hpp | 9 |
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; |