Flutter Engine
flutter::VsyncWaiterIOS Class Referencefinal

#import <vsync_waiter_ios.h>

Inheritance diagram for flutter::VsyncWaiterIOS:
flutter::VsyncWaiter

Instance Methods

() - VsyncWaiterIOS
 
() - ~VsyncWaiterIOS
 
- Instance Methods 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

Definition at line 43 of file vsync_waiter_ios.h.

Constructor & Destructor Documentation

◆ VsyncWaiterIOS()

- VsyncWaiterIOS: (flutter::TaskRunners task_runners

Definition at line 20 of file vsync_waiter_ios.mm.

21  : VsyncWaiter(std::move(task_runners)),
22  client_([[VSyncClient alloc] initWithTaskRunner:task_runners_.GetUITaskRunner()
23  callback:std::bind(&VsyncWaiterIOS::FireCallback,
24  this,
25  std::placeholders::_1,
26  std::placeholders::_2)]) {}
VsyncWaiter(TaskRunners task_runners)
Definition: vsync_waiter.cc:32
fml::RefPtr< fml::TaskRunner > GetUITaskRunner() const
Definition: task_runners.cc:34
void FireCallback(fml::TimePoint frame_start_time, fml::TimePoint frame_target_time)
Definition: vsync_waiter.cc:91
const TaskRunners task_runners_
Definition: vsync_waiter.h:39

◆ ~VsyncWaiterIOS()

- VsyncWaiterIOS:

Definition at line 28 of file vsync_waiter_ios.mm.

References fml::scoped_nsprotocol< NST >::get().

28  {
29  // This way, we will get no more callbacks from the display link that holds a weak (non-nilling)
30  // reference to this C++ object.
31  [client_.get() invalidate];
32 }

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