to top
Android APIs
public class

RSSurfaceView

extends SurfaceView
implements SurfaceHolder.Callback
java.lang.Object
   ↳ android.view.View
     ↳ android.view.SurfaceView
       ↳ android.renderscript.RSSurfaceView

This class was deprecated in API level 16.
in API 16 The Surface View for a graphics renderscript (RenderScriptGL) to draw on.

Developer Guides

For more information about creating an application that uses Renderscript, read the Renderscript developer guide.

Summary

[Expand]
Inherited XML Attributes
From class android.view.View
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
RSSurfaceView(Context context)
This constructor was deprecated in API level 16. in API 16 Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.
RSSurfaceView(Context context, AttributeSet attrs)
This constructor was deprecated in API level 16. in API 16 Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.
Public Methods
RenderScriptGL createRenderScriptGL(RenderScriptGL.SurfaceConfig sc)
This method was deprecated in API level 16. in API 16
void destroyRenderScriptGL()
This method was deprecated in API level 16. in API 16
RenderScriptGL getRenderScriptGL()
This method was deprecated in API level 16. in API 16
void pause()
This method was deprecated in API level 16. 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.
void resume()
This method was deprecated in API level 16. 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.
void setRenderScriptGL(RenderScriptGL rs)
This method was deprecated in API level 16. in API 16
void surfaceChanged(SurfaceHolder holder, int format, int w, int h)
This method was deprecated in API level 16. in API 16 This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.
void surfaceCreated(SurfaceHolder holder)
This method was deprecated in API level 16. in API 16 This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.
void surfaceDestroyed(SurfaceHolder holder)
This method was deprecated in API level 16. in API 16 This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.
[Expand]
Inherited Methods
From class android.view.SurfaceView
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.SurfaceHolder.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public RSSurfaceView (Context context)

Added in API level 11

This constructor was deprecated in API level 16.
in API 16 Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.

public RSSurfaceView (Context context, AttributeSet attrs)

Added in API level 11

This constructor was deprecated in API level 16.
in API 16 Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.

Public Methods

public RenderScriptGL createRenderScriptGL (RenderScriptGL.SurfaceConfig sc)

Added in API level 11

This method was deprecated in API level 16.
in API 16

public void destroyRenderScriptGL ()

Added in API level 11

This method was deprecated in API level 16.
in API 16

public RenderScriptGL getRenderScriptGL ()

Added in API level 11

This method was deprecated in API level 16.
in API 16

public void pause ()

Added in API level 11

This method was deprecated in API level 16.
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 resume ()

Added in API level 11

This method was deprecated in API level 16.
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 setRenderScriptGL (RenderScriptGL rs)

Added in API level 11

This method was deprecated in API level 16.
in API 16

public void surfaceChanged (SurfaceHolder holder, int format, int w, int h)

Added in API level 11

This method was deprecated in API level 16.
in API 16 This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.

This is called immediately after any structural changes (format or size) have been made to the surface. You should at this point update the imagery in the surface. This method is always called at least once, after surfaceCreated(SurfaceHolder).

Parameters
holder The SurfaceHolder whose surface has changed.
format The new PixelFormat of the surface.
w The new width of the surface.
h The new height of the surface.

public void surfaceCreated (SurfaceHolder holder)

Added in API level 11

This method was deprecated in API level 16.
in API 16 This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.

This is called immediately after the surface is first created. Implementations of this should start up whatever rendering code they desire. Note that only one thread can ever draw into a Surface, so you should not draw into the Surface here if your normal rendering will be in another thread.

Parameters
holder The SurfaceHolder whose surface is being created.

public void surfaceDestroyed (SurfaceHolder holder)

Added in API level 11

This method was deprecated in API level 16.
in API 16 This method is part of the SurfaceHolder.Callback interface, and is not normally called or subclassed by clients of RSSurfaceView.

This is called immediately before a surface is being destroyed. After returning from this call, you should no longer try to access this surface. If you have a rendering thread that directly accesses the surface, you must ensure that thread is no longer touching the Surface before returning from this function.

Parameters
holder The SurfaceHolder whose surface is being destroyed.