5#ifndef FLUTTER_SHELL_COMMON_VSYNC_WAITERS_TEST_H_
6#define FLUTTER_SHELL_COMMON_VSYNC_WAITERS_TEST_H_
8#define FML_USED_ON_EMBEDDER
12#include "flutter/shell/common/shell.h"
29 std::vector<std::promise<int>> vsync_promised_;
30 size_t vsync_issued_ = 0;
36 std::shared_ptr<ShellTestVsyncClock> clock)
43 std::shared_ptr<ShellTestVsyncClock> clock_;
static constexpr fml::TimePoint kFrameTargetTime
static constexpr fml::TimePoint kFrameBeginTime
void AwaitVSync() override
ConstantFiringVsyncWaiter(const TaskRunners &task_runners)
std::future< int > NextVSync()
A future that will return the index the next vsync signal.
void SimulateVSync()
Simulate that a vsync signal is triggered.
ShellTestVsyncWaiter(const TaskRunners &task_runners, std::shared_ptr< ShellTestVsyncClock > clock)
void AwaitVSync() override
double GetRefreshRate() const override
TestRefreshRateReporter(double refresh_rate)
void UpdateRefreshRate(double refresh_rate)
static constexpr TimeDelta FromSeconds(int64_t seconds)
static constexpr TimePoint FromEpochDelta(TimeDelta ticks)
std::function< std::unique_ptr< VsyncWaiter >()> CreateVsyncWaiter