summaryrefslogtreecommitdiff
path: root/include/mbgl/style/heatmap_color_property_value.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/heatmap_color_property_value.hpp')
-rw-r--r--include/mbgl/style/heatmap_color_property_value.hpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/mbgl/style/heatmap_color_property_value.hpp b/include/mbgl/style/heatmap_color_property_value.hpp
index 98640c2a41..1c642f66b9 100644
--- a/include/mbgl/style/heatmap_color_property_value.hpp
+++ b/include/mbgl/style/heatmap_color_property_value.hpp
@@ -3,17 +3,10 @@
#include <mbgl/util/variant.hpp>
#include <mbgl/style/undefined.hpp>
#include <mbgl/style/function/camera_function.hpp>
-#include <mbgl/renderer/property_evaluation_parameters.hpp>
namespace mbgl {
namespace style {
-class NoopPropertyEvaluator {
-public:
- using ResultType = Color;
- NoopPropertyEvaluator(const PropertyEvaluationParameters&, Color) {}
-};
-
/*
* Special-case implementation of (a subset of) the PropertyValue<T> interface
* used for building the HeatmapColor paint property traits class.
@@ -37,7 +30,8 @@ public:
bool isUndefined() const { return value.get() != nullptr; }
// noop, needed for batch evaluation of paint property values to compile
- Color evaluate(const NoopPropertyEvaluator&, TimePoint = {}) const { return {}; }
+ template <typename Evaluator>
+ Color evaluate(const Evaluator&, TimePoint = {}) const { return {}; }
bool isDataDriven() const { return false; }
bool hasDataDrivenPropertyDifference(const HeatmapColorPropertyValue&) const { return false; }
};