summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/fill_extrusion_layer_properties.cpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-06-27 17:06:49 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-02 16:05:09 +0300
commitc1445913220023fdaf8ec5960eb6cba27c348864 (patch)
tree4958d023e640e630525760d80431606794c10f78 /src/mbgl/style/layers/fill_extrusion_layer_properties.cpp
parent21f75229675a07093689d542f116066c7af59ce4 (diff)
downloadqtlocation-mapboxgl-c1445913220023fdaf8ec5960eb6cba27c348864.tar.gz
[core] Introduce LayerProperties::constantsMask()
Constants mask for data-driven paint properties is a reliable criteria of whether the given updated properties can still be used with the existing bucket (and the gl program instance).
Diffstat (limited to 'src/mbgl/style/layers/fill_extrusion_layer_properties.cpp')
-rw-r--r--src/mbgl/style/layers/fill_extrusion_layer_properties.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/style/layers/fill_extrusion_layer_properties.cpp b/src/mbgl/style/layers/fill_extrusion_layer_properties.cpp
index 7986c40923..ddfe9c8468 100644
--- a/src/mbgl/style/layers/fill_extrusion_layer_properties.cpp
+++ b/src/mbgl/style/layers/fill_extrusion_layer_properties.cpp
@@ -21,6 +21,10 @@ FillExtrusionLayerProperties::FillExtrusionLayerProperties(
FillExtrusionLayerProperties::~FillExtrusionLayerProperties() = default;
+unsigned long FillExtrusionLayerProperties::constantsMask() const {
+ return evaluated.constantsMask();
+}
+
const FillExtrusionLayer::Impl& FillExtrusionLayerProperties::layerImpl() const {
return static_cast<const FillExtrusionLayer::Impl&>(*baseImpl);
}