public class SurfaceTextureWrapper extends Object
The engine calls SurfaceTexture.release
on the platform thread, but updateTexImage
is called on the raster thread. This wrapper will prevent updateTexImage
calls on an abandoned texture.
Constructor and Description |
---|
SurfaceTextureWrapper(SurfaceTexture surfaceTexture) |
Modifier and Type | Method and Description |
---|---|
void |
attachToGLContext(int texName) |
void |
detachFromGLContext() |
void |
getTransformMatrix(float[] mtx) |
void |
release() |
SurfaceTexture |
surfaceTexture() |
void |
updateTexImage() |
public SurfaceTextureWrapper(@NonNull SurfaceTexture surfaceTexture)
@NonNull public SurfaceTexture surfaceTexture()
public void updateTexImage()
public void release()
public void attachToGLContext(int texName)
public void detachFromGLContext()
public void getTransformMatrix(float[] mtx)