Flutter Engine
The Flutter Engine
|
#import <FlutterVSyncWaiter.h>
Instance Methods | |
(instancetype) | - initWithDisplayLink:block: |
(void) | - waitForVSync: |
(void) | - processDisplayLink:targetTimestamp: [implementation] |
(void) | - onDisplayLink:targetTimestamp: [implementation] |
(void) | - dealloc [implementation] |
(void) | - onDisplayLink:targetTimestamp: |
Definition at line 8 of file FlutterVSyncWaiter.h.
|
implementation |
Definition at line 42 of file FlutterVSyncWaiter.mm.
- (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 same thread as -waitForVSync:.
Definition at line 42 of file FlutterVSyncWaiter.mm.
|
implementation |
Reimplemented from <FlutterDisplayLinkDelegate>.
Definition at line 42 of file FlutterVSyncWaiter.mm.
|
implementation |
Definition at line 42 of file FlutterVSyncWaiter.mm.
- (void) waitForVSync: | (uintptr_t) | baton |
Schedules |baton| to be signaled on next display refresh. The block provided in the initializer will be invoked on same thread as this method (there must be a run loop associated with current thread).
Definition at line 42 of file FlutterVSyncWaiter.mm.