From 591af0021bfb8b9fdfd803b55fb6c18a24c46943 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 30 May 2017 13:40:36 -0700 Subject: [core] Refactor RenderSource updates * Eliminate updateBatch in favor of diffing layers and detecting changes to properties upon which layout depends. * Replace RenderSource::{update,remove,invalidate,reload}Tiles with a single update method * Replace TilePyramid::{update,remove,invalidate,reload}Tiles with a single update method * Remove Style& dependency TODO from GeometryTile and TileParameters --- include/mbgl/style/data_driven_property_value.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/mbgl/style/data_driven_property_value.hpp') diff --git a/include/mbgl/style/data_driven_property_value.hpp b/include/mbgl/style/data_driven_property_value.hpp index 12a369abb1..090ee0f59b 100644 --- a/include/mbgl/style/data_driven_property_value.hpp +++ b/include/mbgl/style/data_driven_property_value.hpp @@ -59,6 +59,10 @@ public: auto evaluate(const Evaluator& evaluator, TimePoint = {}) const { return Value::visit(value, evaluator); } + + bool hasDataDrivenPropertyDifference(const DataDrivenPropertyValue& other) const { + return *this != other && (isDataDriven() || other.isDataDriven()); + } }; } // namespace style -- cgit v1.2.1