summaryrefslogtreecommitdiff
path: root/src/mbgl/style/applied_class_properties.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/applied_class_properties.hpp')
-rw-r--r--src/mbgl/style/applied_class_properties.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mbgl/style/applied_class_properties.hpp b/src/mbgl/style/applied_class_properties.hpp
index 827f15a2a1..bd84095590 100644
--- a/src/mbgl/style/applied_class_properties.hpp
+++ b/src/mbgl/style/applied_class_properties.hpp
@@ -3,20 +3,20 @@
#include <mbgl/style/property_value.hpp>
#include <mbgl/style/class_dictionary.hpp>
-#include <mbgl/util/time.hpp>
#include <list>
+#include <chrono>
namespace mbgl {
class AppliedClassProperty {
public:
- AppliedClassProperty(ClassID class_id, timestamp begin, timestamp end, const PropertyValue &value);
+ AppliedClassProperty(ClassID class_id, std::chrono::steady_clock::time_point begin, std::chrono::steady_clock::time_point end, const PropertyValue &value);
public:
const ClassID name;
- const timestamp begin;
- const timestamp end;
+ const std::chrono::steady_clock::time_point begin;
+ const std::chrono::steady_clock::time_point end;
const PropertyValue value;
};
@@ -26,11 +26,11 @@ public:
std::list<AppliedClassProperty> properties;
public:
- // Returns thie ID of the most recent
+ // Returns the ID of the most recent
ClassID mostRecent() const;
- void add(ClassID class_id, timestamp begin, timestamp end, const PropertyValue &value);
+ void add(ClassID class_id, std::chrono::steady_clock::time_point begin, std::chrono::steady_clock::time_point end, const PropertyValue &value);
bool hasTransitions() const;
- void cleanup(timestamp now);
+ void cleanup(std::chrono::steady_clock::time_point now);
bool empty() const;
};