Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
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 (const 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 (const TaskRunners &task_runners)
 
virtual void AwaitVSync ()=0
 
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 ( const TaskRunners task_runners,
bool  for_testing = false 
)
explicit

Definition at line 28 of file vsync_waiter_fallback.cc.

30 : VsyncWaiter(task_runners),
31 phase_(fml::TimePoint::Now()),
32 for_testing_(for_testing) {}
VsyncWaiter(const TaskRunners &task_runners)
Definition: vsync_waiter.cc:21
static TimePoint Now()
Definition: time_point.cc:49

◆ ~VsyncWaiterFallback()

flutter::VsyncWaiterFallback::~VsyncWaiterFallback ( )
overridedefault

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