Flutter Engine
The Flutter Engine
|
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 () |
Uses a Surface to populate the texture.
Definition at line 71 of file TextureRegistry.java.
int io.flutter.view.TextureRegistry.SurfaceProducer.getHeight | ( | ) |
Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer.ImageReaderSurfaceProducer, and io.flutter.embedding.engine.renderer.SurfaceTextureSurfaceProducer.
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.
Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer.ImageReaderSurfaceProducer, and io.flutter.embedding.engine.renderer.SurfaceTextureSurfaceProducer.
int io.flutter.view.TextureRegistry.SurfaceProducer.getWidth | ( | ) |
Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer.ImageReaderSurfaceProducer, and io.flutter.embedding.engine.renderer.SurfaceTextureSurfaceProducer.
void io.flutter.view.TextureRegistry.SurfaceProducer.scheduleFrame | ( | ) |
Specify the size of this texture in physical pixels
Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer.ImageReaderSurfaceProducer, and io.flutter.embedding.engine.renderer.SurfaceTextureSurfaceProducer.