Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SurfaceTextureWrapper (@NonNull SurfaceTexture surfaceTexture) | |
SurfaceTextureWrapper ( @NonNull SurfaceTexture surfaceTexture, @Nullable Runnable onFrameConsumed) | |
SurfaceTexture | surfaceTexture () |
void | markDirty () |
boolean | shouldUpdate () |
void | updateTexImage () |
void | release () |
void | attachToGLContext (int texName) |
void | detachFromGLContext () |
void | getTransformMatrix (@NonNull float[] mtx) |
A wrapper for a SurfaceTexture that tracks whether the texture has been released.
The engine calls SurfaceTexture.release
on the platform thread, but
is called on the raster thread. This wrapper will prevent
updateTexImageupdateTexImage
calls on an abandoned texture.
Definition at line 20 of file SurfaceTextureWrapper.java.
|
inline |
Definition at line 27 of file SurfaceTextureWrapper.java.
|
inline |
A wrapper for a SurfaceTexture.
The provided onFrameConsumed
callback must be invoked when the most recent image was consumed.
onFrameConsumed | The callback after the updateTexImage is called. |
Definition at line 39 of file SurfaceTextureWrapper.java.
|
inline |
Definition at line 89 of file SurfaceTextureWrapper.java.
|
inline |
Definition at line 111 of file SurfaceTextureWrapper.java.
|
inline |
Definition at line 122 of file SurfaceTextureWrapper.java.
|
inline |
Definition at line 51 of file SurfaceTextureWrapper.java.
|
inline |
Definition at line 77 of file SurfaceTextureWrapper.java.
|
inline |
Definition at line 57 of file SurfaceTextureWrapper.java.
|
inline |
Definition at line 47 of file SurfaceTextureWrapper.java.
|
inline |
Definition at line 65 of file SurfaceTextureWrapper.java.