summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_layer.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2018-10-25 17:30:59 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2018-11-19 14:06:21 +0200
commita7274f66d06b061effe57b2aeff254b4f94ba248 (patch)
tree7d4fcb187c848b8b064b65db7790e471de458145 /src/mbgl/renderer/render_layer.hpp
parentf6ad5f378e9a0741b7d3c293cb91466ba2770e36 (diff)
downloadqtlocation-mapboxgl-a7274f66d06b061effe57b2aeff254b4f94ba248.tar.gz
[core] Move layer specific color ramp updates behind common update() method
Diffstat (limited to 'src/mbgl/renderer/render_layer.hpp')
-rw-r--r--src/mbgl/renderer/render_layer.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mbgl/renderer/render_layer.hpp b/src/mbgl/renderer/render_layer.hpp
index 04753fc674..dc7c58adeb 100644
--- a/src/mbgl/renderer/render_layer.hpp
+++ b/src/mbgl/renderer/render_layer.hpp
@@ -95,7 +95,14 @@ public:
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();
+
friend std::string layoutKey(const RenderLayer&);
+
protected:
// Checks whether the current hardware can render this layer. If it can't, we'll show a warning
// in the console to inform the developer.