Flutter Engine
flutter::VsyncWaiterFallback Class Referencefinal

A |VsyncWaiter| that will fire at 60 fps irrespective of the vsync. More...

#include <vsync_waiter_fallback.h>

Inheritance diagram for flutter::VsyncWaiterFallback:
flutter::VsyncWaiter

Public Member Functions

 VsyncWaiterFallback (TaskRunners task_runners, bool for_testing=false)
 
 ~VsyncWaiterFallback () override
 
- Public Member Functions inherited from flutter::VsyncWaiter
virtual ~VsyncWaiter ()
 
void AsyncWaitForVsync (const Callback &callback)
 
void ScheduleSecondaryCallback (uintptr_t id, const fml::closure &callback)
 

Additional Inherited Members

- Public Types inherited from flutter::VsyncWaiter
using Callback = std::function< void(std::unique_ptr< FrameTimingsRecorder >)>
 
- Protected Member Functions inherited from flutter::VsyncWaiter
 VsyncWaiter (TaskRunners task_runners)
 
virtual void AwaitVSyncForSecondaryCallback ()
 
void FireCallback (fml::TimePoint frame_start_time, fml::TimePoint frame_target_time, bool pause_secondary_tasks=true)
 
- Protected Attributes inherited from flutter::VsyncWaiter
const TaskRunners task_runners_
 

Detailed Description

A |VsyncWaiter| that will fire at 60 fps irrespective of the vsync.

Definition at line 16 of file vsync_waiter_fallback.h.

Constructor & Destructor Documentation

◆ VsyncWaiterFallback()

flutter::VsyncWaiterFallback::VsyncWaiterFallback ( TaskRunners  task_runners,
bool  for_testing = false 
)
explicit

Definition at line 27 of file vsync_waiter_fallback.cc.

References fml::TimeDelta::FromSecondsF(), flutter::TaskRunners::GetUITaskRunner(), fml::TimePoint::Now(), fml::TaskRunner::PostTaskForTime(), flutter::VsyncWaiter::task_runners_, TRACE_EVENT0, and ~VsyncWaiterFallback().

29  : VsyncWaiter(std::move(task_runners)),
30  phase_(fml::TimePoint::Now()),
31  for_testing_(for_testing) {}
VsyncWaiter(TaskRunners task_runners)
Definition: vsync_waiter.cc:37
static TimePoint Now()
Definition: time_point.cc:39

◆ ~VsyncWaiterFallback()

flutter::VsyncWaiterFallback::~VsyncWaiterFallback ( )
overridedefault

Referenced by VsyncWaiterFallback().


The documentation for this class was generated from the following files: