#ifndef MBGL_RENDERER_FRAME_HISTORY #define MBGL_RENDERER_FRAME_HISTORY #include #include #include #include #include namespace mbgl { struct FrameSnapshot { explicit inline FrameSnapshot(TimePoint now_, float z_) : now(now_), z(z_) {} const TimePoint now; float z; }; struct FadeProperties { float fadedist; float minfadezoom; float maxfadezoom; float bump; }; class FrameHistory { public: // Record frame history that will be used to calculate fading params void record(TimePoint now, float zoom); bool needsAnimation(const Duration& duration) const; FadeProperties getFadeProperties(TimePoint now, const Duration& duration); public: std::deque history; }; } #endif