Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions shell/common/vsync_waiter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void VsyncWaiter::FireCallback(fml::TimePoint frame_start_time,
return;
}

task_runners_.GetUITaskRunner()->PostTask(
task_runners_.GetUITaskRunner()->PostTaskForTime(
[callback, frame_start_time, frame_target_time]() {
#if defined(OS_FUCHSIA)
// In general, traces on Fuchsia are recorded across the whole system.
Expand All @@ -49,7 +49,8 @@ void VsyncWaiter::FireCallback(fml::TimePoint frame_start_time,
TRACE_EVENT0("flutter", "VSYNC");
#endif
callback(frame_start_time, frame_target_time);
});
},
frame_start_time);
}

float VsyncWaiter::GetDisplayRefreshRate() const {
Expand Down