Flutter Engine
FlutterOpenGLTexture Struct Reference

#include <embedder.h>

Public Attributes

uint32_t target
 
uint32_t name
 The name of the texture. More...
 
uint32_t format
 The texture format (example GL_RGBA8). More...
 
void * user_data
 User data to be returned on the invocation of the destruction callback. More...
 
VoidCallback destruction_callback
 
size_t width
 
size_t height
 Height of the texture. More...
 

Detailed Description

Definition at line 254 of file embedder.h.

Member Data Documentation

◆ destruction_callback

VoidCallback FlutterOpenGLTexture::destruction_callback

Callback invoked (on an engine managed thread) that asks the embedder to collect the texture.

Definition at line 266 of file embedder.h.

Referenced by flutter::testing::EmbedderTestBackingStoreProducer::Create(), FlutterEngineInitialize(), MakeSkSurfaceFromBackingStore(), operator<<(), and operator==().

◆ format

uint32_t FlutterOpenGLTexture::format

◆ height

size_t FlutterOpenGLTexture::height

Height of the texture.

Definition at line 274 of file embedder.h.

Referenced by FlutterEngineInitialize().

◆ name

uint32_t FlutterOpenGLTexture::name

◆ target

uint32_t FlutterOpenGLTexture::target

Target texture of the active texture unit (example GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE).

Definition at line 257 of file embedder.h.

Referenced by flutter::testing::EmbedderTestBackingStoreProducer::Create(), FlutterEngineInitialize(), MakeSkSurfaceFromBackingStore(), operator<<(), and operator==().

◆ user_data

void* FlutterOpenGLTexture::user_data

User data to be returned on the invocation of the destruction callback.

Definition at line 263 of file embedder.h.

Referenced by flutter::testing::EmbedderTestBackingStoreProducer::Create(), FlutterEngineInitialize(), MakeSkSurfaceFromBackingStore(), operator<<(), and operator==().

◆ width

size_t FlutterOpenGLTexture::width

Optional parameters for texture height/width, default is 0, non-zero means the texture has the specified width/height. Usually, when the texture type is GL_TEXTURE_RECTANGLE, we need to specify the texture width/height to tell the embedder to scale when rendering. Width of the texture.

Definition at line 272 of file embedder.h.

Referenced by FlutterEngineInitialize().


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