summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/frame_history.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/frame_history.hpp')
-rw-r--r--src/mbgl/renderer/frame_history.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mbgl/renderer/frame_history.hpp b/src/mbgl/renderer/frame_history.hpp
index f56b391256..15ca92e469 100644
--- a/src/mbgl/renderer/frame_history.hpp
+++ b/src/mbgl/renderer/frame_history.hpp
@@ -4,15 +4,15 @@
#include <deque>
#include <cassert>
#include <cmath>
-#include <chrono>
#include <mbgl/platform/platform.hpp>
+#include <mbgl/util/chrono.hpp>
namespace mbgl {
struct FrameSnapshot {
- explicit inline FrameSnapshot(std::chrono::steady_clock::time_point now_, float z_) : now(now_), z(z_) {}
- std::chrono::steady_clock::time_point now;
+ explicit inline FrameSnapshot(TimePoint now_, float z_) : now(now_), z(z_) {}
+ TimePoint now;
float z;
};
@@ -26,10 +26,10 @@ struct FadeProperties {
class FrameHistory {
public:
// Record frame history that will be used to calculate fading params
- void record(std::chrono::steady_clock::time_point now, float zoom);
+ void record(TimePoint now, float zoom);
- bool needsAnimation(std::chrono::steady_clock::duration duration) const;
- FadeProperties getFadeProperties(std::chrono::steady_clock::duration duration);
+ bool needsAnimation(Duration) const;
+ FadeProperties getFadeProperties(Duration);
public:
std::deque<FrameSnapshot> history;