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 262 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 274 of file embedder.h.

Referenced by flutter::testing::EmbedderTestBackingStoreProducer::Create(), fl_pixel_buffer_texture_populate(), fl_texture_gl_populate(), MakeSkSurfaceFromBackingStore(), operator<<(), operator==(), and flutter::ExternalTextureGL::PopulateTexture().

◆ format

◆ height

size_t FlutterOpenGLTexture::height

◆ name

◆ target

uint32_t FlutterOpenGLTexture::target

◆ user_data

void* FlutterOpenGLTexture::user_data

◆ 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 280 of file embedder.h.

Referenced by fl_pixel_buffer_texture_populate(), fl_texture_gl_populate(), flutter::ExternalTextureGL::PopulateTexture(), TEST(), and flutter::testing::TEST().


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