Flutter Engine
FlutterExternalTextureGL Class Reference

#import <FlutterExternalTextureGL.h>

Inheritance diagram for FlutterExternalTextureGL:

Instance Methods

(nonnull instancetype) - initWithFlutterTexture:
 
(BOOL) - populateTexture:
 
(int64_t) - textureID
 

Detailed Description

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

Definition at line 14 of file FlutterExternalTextureGL.h.

Method Documentation

◆ initWithFlutterTexture:()

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

Initializes a texture adapter with |texture| return a instance.

◆ 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.

◆ textureID()

- (int64_t) textureID

Returns the ID for the FlutterTexture instance.

Definition at line 34 of file FlutterExternalTextureGL.mm.

References OnCVOpenGLTextureRelease().

Referenced by FlutterEngine::shutDownEngine.

34  {
35  return reinterpret_cast<int64_t>(self);
36 }

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