public class ClosableSurface
extends android.view.Surface
implements java.io.Closeable
| Constructor and Description |
|---|
ClosableSurface(android.graphics.SurfaceTexture surfaceTexture)
Create Surface from a
SurfaceTexture. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
public ClosableSurface(android.graphics.SurfaceTexture surfaceTexture)
SurfaceTexture.
Images drawn to the Surface will be made available to the SurfaceTexture, which can attach them to an OpenGL ES texture via SurfaceTexture.updateTexImage().surfaceTexture - The SurfaceTexture that is updated by this
Surface.OutOfResourcesException - if the surface could not be created.