Flutter Engine
The Flutter Engine
|
#import <FlutterMetalLayer.h>
Instance Methods | |
(nullable id< CAMetalDrawable >) | - nextDrawable |
(instancetype) | - init [implementation] |
(void) | - setMaxRefreshRate:forceMax: [implementation] |
(void) | - onDisplayLink: [implementation] |
(BOOL) | - isKindOfClass: [implementation] |
(void) | - setDrawableSize: [implementation] |
(void) | - didEnterBackground: [implementation] |
(IOSurface *) | - createIOSurface [implementation] |
(FlutterTexture *) | - nextTexture [implementation] |
(FlutterTexture *) | - tryNextTexture [implementation] |
(void) | - presentOnMainThread: [implementation] |
(void) | - presentTexture: [implementation] |
(void) | - returnTexture: [implementation] |
Class Methods | |
(BOOL) | + enabled |
Protected Attributes | |
id< MTLDevice > | _preferredDevice |
CGSize | _drawableSize |
NSUInteger | _nextDrawableId |
NSMutableSet< FlutterTexture * > * | _availableTextures |
NSUInteger | _totalTextures |
FlutterTexture * | _front |
CADisplayLink * | _displayLink |
NSUInteger | _displayLinkPauseCountdown |
BOOL | _didSetContentsDuringThisDisplayLinkPeriod |
BOOL | _displayLinkForcedMaxRate |
Properties | |
id< MTLDevice > | device |
id< MTLDevice > | preferredDevice |
MTLPixelFormat | pixelFormat |
BOOL | framebufferOnly |
CGSize | drawableSize |
BOOL | presentsWithTransaction |
CGColorSpaceRef | colorspace |
BOOL | wantsExtendedDynamicRangeContent |
Drop-in replacement (as far as Flutter is concerned) for CAMetalLayer that can present with transaction from a background thread.
Definition at line 12 of file FlutterMetalLayer.h.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
+ (BOOL) enabled |
Returns whether the Metal layer is enabled. This is controlled by FLTUseFlutterMetalLayer value in Info.plist.
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
- (id< CAMetalDrawable >) nextDrawable |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 32 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 47 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 39 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 50 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 40 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 28 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 35 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 30 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 27 of file FlutterMetalLayer.mm.
|
protected |
Definition at line 33 of file FlutterMetalLayer.mm.
|
readwriteatomicassign |
Definition at line 20 of file FlutterMetalLayer.h.
|
readwriteatomicretain |
Definition at line 14 of file FlutterMetalLayer.h.
|
readwriteatomic |
Definition at line 18 of file FlutterMetalLayer.h.
|
readwriteatomic |
Definition at line 17 of file FlutterMetalLayer.h.
|
readwriteatomic |
Definition at line 16 of file FlutterMetalLayer.h.
|
readatomicassign |
Definition at line 15 of file FlutterMetalLayer.h.
|
readwriteatomic |
Definition at line 19 of file FlutterMetalLayer.h.
|
readwriteatomic |
Definition at line 21 of file FlutterMetalLayer.h.