Flutter Engine
FlutterExternalTextureGL Class Reference

#import <FlutterExternalTextureGL.h>

Inheritance diagram for FlutterExternalTextureGL:
<FlutterMacOSExternalTexture>

Instance Methods

(nonnull instancetype) - initWithFlutterTexture:
 
(BOOL- populateTexture:
 
- Instance Methods inherited from <FlutterMacOSExternalTexture>
(int64_t) - textureID
 

Detailed Description

Used to bridge FlutterTexture object and handle the texture copy request the Flutter engine.

Definition at line 13 of file FlutterExternalTextureGL.h.

Method Documentation

◆ initWithFlutterTexture:()

- (nonnull instancetype) initWithFlutterTexture: (nonnull id< FlutterTexture >)  texture

Initializes a texture adapter with |texture|.

◆ populateTexture:()

- (BOOL) populateTexture: (nonnull FlutterOpenGLTexture *)  openGLTexture

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 |openGLTexture| object, such as the texture type and the format of the pixel buffer and the texture object.

Referenced by FlutterOpenGLRenderer::makeResourceCurrent.


The documentation for this class was generated from the following file: