Methods Summary |
---|
public void | destroy()
if (mRenderThread != null) {
mRenderThread.finish();
mRenderThread = null;
}
|
protected void | finalize()
try {
destroy();
} catch (Throwable t) {
// Ignore
}
super.finalize();
|
public void | onSurfaceTextureAvailable(android.graphics.SurfaceTexture surface, int width, int height)
mRenderThread.setSurface(surface);
mRenderThread.setSize(width, height);
|
public boolean | onSurfaceTextureDestroyed(android.graphics.SurfaceTexture surface)
if (mRenderThread != null) {
mRenderThread.setSurface(null);
}
return false;
|
public void | onSurfaceTextureSizeChanged(android.graphics.SurfaceTexture surface, int width, int height)
mRenderThread.setSize(width, height);
|
public void | onSurfaceTextureUpdated(android.graphics.SurfaceTexture surface)
|
public void | render()
mRenderThread.render();
|
public void | setRenderer(android.opengl.GLSurfaceView.Renderer renderer)
if (mRenderThread != null) {
throw new IllegalArgumentException("Renderer already set");
}
mRenderThread = new RenderThread(renderer);
|