Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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

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 ( )
Returns
The currently specified height (physical pixels)

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

◆ getWidth()

int io.flutter.view.TextureRegistry.SurfaceProducer.getWidth ( )
Returns
The currently specified width (physical pixels)

◆ scheduleFrame()

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

◆ setSize()

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

Specify the size of this texture in physical pixels


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