Flutter Engine
The Flutter Engine
|
#import <FlutterExternalTexture.h>
Instance Methods | |
(nonnull instancetype) | - initWithFlutterTexture:darwinMetalContext: |
(int64_t) | - textureID |
(BOOL) | - populateTexture: |
(instancetype) | - initWithFlutterTexture:darwinMetalContext: [implementation] |
(BOOL) | - populateTexture: [implementation] |
(BOOL) | - populateTextureFromYUVAPixelBuffer:textureOut: [implementation] |
(BOOL) | - populateTextureFromRGBAPixelBuffer:textureOut: [implementation] |
Embedding side texture wrappers for Metal external textures. Used to bridge FlutterTexture object and handle the texture copy request the Flutter engine.
Definition at line 18 of file FlutterExternalTexture.h.
|
implementation |
Definition at line 16 of file FlutterExternalTexture.mm.
- (nonnull instancetype) initWithFlutterTexture: | (nonnull id< FlutterTexture >) | texture | |
darwinMetalContext: | (nonnull FlutterDarwinContextMetalSkia *) | context | |
Initializes a texture adapter with |texture|.
|
implementation |
Definition at line 16 of file FlutterExternalTexture.mm.
- (BOOL) populateTexture: | (nonnull FlutterMetalExternalTexture *) | metalTexture |
Accepts texture buffer copy request from the Flutter engine. When the user side marks the textureID as available, the Flutter engine will callback to this method and ask for populate the |metalTexture| object, such as the texture type and the format of the pixel buffer and the texture object.
|
implementation |
Definition at line 16 of file FlutterExternalTexture.mm.
|
implementation |
Definition at line 16 of file FlutterExternalTexture.mm.
- (int64_t) textureID |
Returns the ID for the FlutterExternalTexture instance.
Definition at line 16 of file FlutterExternalTexture.mm.