diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-10-24 14:28:55 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-11-10 11:33:17 -0800 |
commit | 728a9858ea88751e74de57694746c2ea1546ce25 (patch) | |
tree | 3f0f9bfba9fa477745e364c16cdeb76ca7d99afd /src/mbgl/style/paint_properties_map.hpp | |
parent | 41120774af3af5d01cff689fbc61135252c1f575 (diff) | |
download | qtlocation-mapboxgl-728a9858ea88751e74de57694746c2ea1546ce25.tar.gz |
[core] Push layouts and paints to subclasses
Diffstat (limited to 'src/mbgl/style/paint_properties_map.hpp')
-rw-r--r-- | src/mbgl/style/paint_properties_map.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mbgl/style/paint_properties_map.hpp b/src/mbgl/style/paint_properties_map.hpp index 26fd8301ba..e32f723d8d 100644 --- a/src/mbgl/style/paint_properties_map.hpp +++ b/src/mbgl/style/paint_properties_map.hpp @@ -18,14 +18,13 @@ namespace mbgl { class ClassProperties; class PropertyTransition; +class StyleCascadeParameters; using JSVal = rapidjson::Value; class PaintPropertiesMap { public: - void cascade(const std::vector<std::string>& classNames, - const TimePoint& now, - const PropertyTransition& defaultTransition); + void cascade(const StyleCascadeParameters&); bool hasTransitions() const; void removeExpiredTransitions(const TimePoint& now); @@ -81,8 +80,7 @@ private: // Applies all properties from a class, if they haven't been applied already. void cascadeClass(const ClassID, std::set<PropertyKey>&, - const TimePoint&, - const PropertyTransition&); + const StyleCascadeParameters&); // For every property, stores a list of applied property values, with // optional transition times. |