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)
 
 ~VsyncWaiterFallback () override
 
- Public Member Functions inherited from flutter::VsyncWaiter
virtual ~VsyncWaiter ()
 
void AsyncWaitForVsync (const Callback &callback)
 
void ScheduleSecondaryCallback (const fml::closure &callback)
 

Additional Inherited Members

- Public Types inherited from flutter::VsyncWaiter
using Callback = std::function< void(fml::TimePoint frame_start_time, fml::TimePoint frame_target_time)>
 
- Protected Member Functions inherited from flutter::VsyncWaiter
 VsyncWaiter (TaskRunners task_runners)
 
void FireCallback (fml::TimePoint frame_start_time, fml::TimePoint frame_target_time)
 
- 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)

Definition at line 23 of file vsync_waiter_fallback.cc.

References flutter::VsyncWaiter::FireCallback(), fml::TimeDelta::FromSecondsF(), fml::TimePoint::Now(), and ~VsyncWaiterFallback().

24  : VsyncWaiter(std::move(task_runners)), phase_(fml::TimePoint::Now()) {}
VsyncWaiter(TaskRunners task_runners)
Definition: vsync_waiter.cc:32
static TimePoint Now()
Definition: time_point.cc:26

◆ ~VsyncWaiterFallback()

flutter::VsyncWaiterFallback::~VsyncWaiterFallback ( )
overridedefault

Referenced by VsyncWaiterFallback().


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