#import <FlutterExternalTexture.h>
Instance Methods | |
(nonnull instancetype) | - initWithFlutterTexture:darwinMetalContext: |
(int64_t) | - textureID |
(BOOL) | - populateTexture: |
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.
- (nonnull instancetype) initWithFlutterTexture: | (nonnull id< FlutterTexture >) | texture | |
darwinMetalContext: | (nonnull FlutterDarwinContextMetalSkia *) | context | |
Initializes a texture adapter with |texture|.
- (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.
Referenced by flutter::testing::TEST_F().
- (int64_t) textureID |
Returns the ID for the FlutterExternalTexture instance.
Definition at line 30 of file FlutterExternalTexture.mm.
References _textureID.