summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style_layer.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-10-26 15:12:43 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-11-10 11:33:17 -0800
commit54e08b1f83504e12cbc19b08295d9f9ed5177ab5 (patch)
tree40513395d4d0ed2d9003ef30a708f21b2e83e5ab /src/mbgl/style/style_layer.hpp
parenta5625675890213f94de7632d4ef152ade627c9a5 (diff)
downloadqtlocation-mapboxgl-54e08b1f83504e12cbc19b08295d9f9ed5177ab5.tar.gz
[core] Eliminate use of ClassProperties for paint
Diffstat (limited to 'src/mbgl/style/style_layer.hpp')
-rw-r--r--src/mbgl/style/style_layer.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/style/style_layer.hpp b/src/mbgl/style/style_layer.hpp
index 3e86625755..a1a0389fbe 100644
--- a/src/mbgl/style/style_layer.hpp
+++ b/src/mbgl/style/style_layer.hpp
@@ -8,7 +8,9 @@
#include <rapidjson/document.h>
+#include <memory>
#include <string>
+#include <limits>
namespace mbgl {
@@ -36,13 +38,11 @@ public:
virtual void cascade(const StyleCascadeParameters&) = 0;
// Fully evaluate cascaded paint properties based on a zoom level.
- virtual void recalculate(const StyleCalculationParameters&) = 0;
+ // Returns true if any paint properties have active transitions.
+ virtual bool recalculate(const StyleCalculationParameters&) = 0;
virtual std::unique_ptr<Bucket> createBucket(StyleBucketParameters&) const = 0;
- // Checks whether this layer has any active paint properties with transitions.
- virtual bool hasTransitions() const = 0;
-
// Checks whether this layer needs to be rendered in the given render pass.
bool hasRenderPass(RenderPass) const;