From c1445913220023fdaf8ec5960eb6cba27c348864 Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Thu, 27 Jun 2019 17:06:49 +0300 Subject: [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). --- include/mbgl/style/layer_properties.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mbgl/style/layer_properties.hpp b/include/mbgl/style/layer_properties.hpp index 301a048e50..c238faf02f 100644 --- a/include/mbgl/style/layer_properties.hpp +++ b/include/mbgl/style/layer_properties.hpp @@ -13,7 +13,8 @@ namespace style { class LayerProperties { public: virtual ~LayerProperties() = default; - + // Returns constants mask for the data-driven properties. + virtual unsigned long constantsMask() const { return 0u; } Immutable baseImpl; protected: -- cgit v1.2.1