/** * @deprecated in API 16 This method is part of the SurfaceHolder.Callback interface, and is not * normally called or subclassed by clients of RSSurfaceView. */ public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { synchronized (this) { if (mRS != null) { mRS.setSurface(holder, w, h); } } }
/** * @deprecated in API 16 This method is part of the SurfaceHolder.Callback interface, and is not * normally called or subclassed by clients of RSSurfaceView. */ public void surfaceDestroyed(SurfaceHolder holder) { synchronized (this) { // Surface will be destroyed when we return if (mRS != null) { mRS.setSurface(null, 0, 0); } } }
/** * @deprecated in API 16 Inform the view that the activity is resumed. The owner of this view must * call this method when the activity is resumed. Calling this method will recreate the OpenGL * display and resume the rendering thread. Must not be called before a renderer has been set. */ public void resume() { if (mRS != null) { mRS.resume(); } }
/** @deprecated in API 16 */ public void destroyRenderScriptGL() { synchronized (this) { mRS.destroy(); mRS = null; } }
/** * @deprecated in API 16 Inform the view that the activity is paused. The owner of this view must * call this method when the activity is paused. Calling this method will pause the rendering * thread. Must not be called before a renderer has been set. */ public void pause() { if (mRS != null) { mRS.pause(); } }