#import <vsync_waiter_ios.h>
Instance Methods | |
(instancetype) | - initWithTaskRunner:callback: |
(void) | - await |
(void) | - pause |
(void) | - invalidate |
(double) | - getRefreshRate |
(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 38 of file vsync_waiter_ios.h.
- (void) await |
Definition at line 107 of file vsync_waiter_ios.mm.
References display_link_.
- (double) getRefreshRate |
Definition at line 148 of file vsync_waiter_ios.mm.
References current_refresh_rate_.
- (instancetype) initWithTaskRunner: | (fml::RefPtr<fml::TaskRunner>) | task_runner | |
callback: | (flutter::VsyncWaiter::Callback) | callback | |
Definition at line 68 of file vsync_waiter_ios.mm.
References current_refresh_rate_, display_link_, DisplayLinkManager::displayRefreshRate, and setMaxRefreshRate:.
- (void) invalidate |
Definition at line 138 of file vsync_waiter_ios.mm.
- (void) pause |
Definition at line 111 of file vsync_waiter_ios.mm.
References display_link_.
- (void) setMaxRefreshRate: | (double) | refreshRate |
Definition at line 93 of file vsync_waiter_ios.mm.
References display_link_, and DisplayLinkManager::maxRefreshRateEnabledOnIPhone.
Referenced by 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 48 of file vsync_waiter_ios.h.