Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.view.TextureRegistry.SurfaceProducer Interface Reference
Inheritance diagram for io.flutter.view.TextureRegistry.SurfaceProducer:
io.flutter.view.TextureRegistry.TextureEntry io.flutter.embedding.engine.renderer.FlutterRenderer.ImageReaderSurfaceProducer io.flutter.embedding.engine.renderer.SurfaceTextureSurfaceProducer

Public Member Functions

void setSize (int width, int height)
 
int getWidth ()
 
int getHeight ()
 
Surface getSurface ()
 
void scheduleFrame ()
 
- Public Member Functions inherited from io.flutter.view.TextureRegistry.TextureEntry
long id ()
 
void release ()
 

Detailed Description

Uses a Surface to populate the texture.

Definition at line 71 of file TextureRegistry.java.

Member Function Documentation

◆ getHeight()

int io.flutter.view.TextureRegistry.SurfaceProducer.getHeight ( )

◆ getSurface()

Surface io.flutter.view.TextureRegistry.SurfaceProducer.getSurface ( )

Get a Surface that can be used to update the texture contents.

NOTE: You should not cache the returned surface but instead invoke getSurface each time you need to draw. The surface may change when the texture is resized or has its format changed.

Returns
a Surface to use for a drawing target for various APIs.

Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer.ImageReaderSurfaceProducer, and io.flutter.embedding.engine.renderer.SurfaceTextureSurfaceProducer.

◆ getWidth()

int io.flutter.view.TextureRegistry.SurfaceProducer.getWidth ( )

◆ scheduleFrame()

void io.flutter.view.TextureRegistry.SurfaceProducer.scheduleFrame ( )

◆ setSize()

void io.flutter.view.TextureRegistry.SurfaceProducer.setSize ( int  width,
int  height 
)

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