Class SurfaceTextureWrapper
- java.lang.Object
-
- io.flutter.embedding.engine.renderer.SurfaceTextureWrapper
-
public class SurfaceTextureWrapper extends Object
A wrapper for a SurfaceTexture that tracks whether the texture has been released.The engine calls
SurfaceTexture.release
on the platform thread, butupdateTexImage
is called on the raster thread. This wrapper will preventupdateTexImage
calls on an abandoned texture.
-
-
Constructor Summary
Constructors Constructor Description SurfaceTextureWrapper(SurfaceTexture surfaceTexture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attachToGLContext(int texName)
void
detachFromGLContext()
void
getTransformMatrix(float[] mtx)
void
release()
SurfaceTexture
surfaceTexture()
void
updateTexImage()
-
-
-
Constructor Detail
-
SurfaceTextureWrapper
public SurfaceTextureWrapper(@NonNull SurfaceTexture surfaceTexture)
-
-
Method Detail
-
surfaceTexture
@NonNull public SurfaceTexture surfaceTexture()
-
updateTexImage
public void updateTexImage()
-
release
public void release()
-
attachToGLContext
public void attachToGLContext(int texName)
-
detachFromGLContext
public void detachFromGLContext()
-
getTransformMatrix
public void getTransformMatrix(float[] mtx)
-
-