#import <vsync_waiter_ios.h>
Instance Methods | |
| (instancetype) | - initWithTaskRunner:callback: |
| (void) | - await |
| (void) | - pause |
| (void) | - invalidate |
| Call invalidate before releasing this object to remove from runloops. More... | |
| (void) | - setMaxRefreshRate: |
Properties | |
| BOOL | allowPauseAfterVsync |
| Default value is YES. Vsync client will pause vsync callback after receiving a vsync signal. Setting this property to NO can avoid this and vsync client will trigger vsync callback continuously. More... | |
Definition at line 36 of file vsync_waiter_ios.h.
| - (void) await |
Definition at line 106 of file vsync_waiter_ios.mm.
References _displayLink.
Referenced by flutter::VsyncWaiterIOS::AwaitVSync.
| - (instancetype) initWithTaskRunner: | (fml::RefPtr<fml::TaskRunner>) | task_runner | |
| callback: | (flutter::VsyncWaiter::Callback) | callback | |
Definition at line 69 of file vsync_waiter_ios.mm.
References _displayLink, DisplayLinkManager::displayRefreshRate, and setMaxRefreshRate:.
| - (void) invalidate |
Call invalidate before releasing this object to remove from runloops.
Definition at line 137 of file vsync_waiter_ios.mm.
References _displayLink.
Referenced by flutter::VsyncWaiterIOS::~VsyncWaiterIOS.
| - (void) pause |
Definition at line 110 of file vsync_waiter_ios.mm.
References _displayLink.
| - (void) setMaxRefreshRate: | (double) | refreshRate |
Definition at line 92 of file vsync_waiter_ios.mm.
References _displayLink, and DisplayLinkManager::maxRefreshRateEnabledOnIPhone.
Referenced by flutter::VsyncWaiterIOS::AwaitVSync, and initWithTaskRunner:callback:.
|
readwritenonatomicassign |
Default value is YES. Vsync client will pause vsync callback after receiving a vsync signal. Setting this property to NO can avoid this and vsync client will trigger vsync callback continuously.
| allowPauseAfterVsync | Allow vsync client to pause after receiving a vsync signal. |
Definition at line 46 of file vsync_waiter_ios.h.