#include <FlutterVSyncWaiter.h>
Instance Methods | |
| (instancetype) | - initWithDisplayLink:block: |
| (void) | - waitForVSync: |
| (void) | - invalidate |
Definition at line 12 of file FlutterVSyncWaiter.h.
| - (instancetype) initWithDisplayLink: | (FlutterDisplayLink*) | displayLink | |
| block: | (void(^)(CFTimeInterval timestamp, CFTimeInterval targetTimestamp, uintptr_t baton)) | block | |
Creates new waiter instance tied to provided NSView. This function must be called on the main thread.
Provided |block| will be invoked on main thread.
Definition at line 46 of file FlutterVSyncWaiter.mm.
| - (void) invalidate |
Invalidates the waiter. This must be called on the main thread before the instance is deallocated.
Definition at line 46 of file FlutterVSyncWaiter.mm.
| - (void) waitForVSync: | (uintptr_t) | baton |
Schedules |baton| to be signaled on next display refresh. This function must be called on the main thread.
Definition at line 46 of file FlutterVSyncWaiter.mm.