Methods Summary |
---|
public RenderScriptGL | createRenderScriptGL(RenderScriptGL.SurfaceConfig sc)
RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc);
setRenderScriptGL(rs);
return rs;
|
public void | destroyRenderScriptGL()
synchronized (this) {
mRS.destroy();
mRS = null;
}
|
public RenderScriptGL | getRenderScriptGL()
return mRS;
|
private void | init()
// Install a SurfaceHolder.Callback so we get notified when the
// underlying surface is created and destroyed
SurfaceHolder holder = getHolder();
holder.addCallback(this);
|
public void | pause()
if(mRS != null) {
mRS.pause();
}
|
public void | resume()
if(mRS != null) {
mRS.resume();
}
|
public void | setRenderScriptGL(RenderScriptGL rs)
mRS = rs;
|
public void | surfaceChanged(android.view.SurfaceHolder holder, int format, int w, int h)
synchronized (this) {
if (mRS != null) {
mRS.setSurface(holder, w, h);
}
}
|
public void | surfaceCreated(android.view.SurfaceHolder holder)
mSurfaceHolder = holder;
|
public void | surfaceDestroyed(android.view.SurfaceHolder holder)
synchronized (this) {
// Surface will be destroyed when we return
if (mRS != null) {
mRS.setSurface(null, 0, 0);
}
}
|