diff options
author | Joe Onorato <joeo@android.com> | 2009-09-25 09:12:16 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-09-25 09:12:16 -0700 |
commit | 5fda65f182231b0e9ad61b1a6803c7603e29344f (patch) | |
tree | cd83cc7911314a3e2bf8ab062b0838e93b0a1960 /graphics | |
parent | cc89ef3d6e9b1f9be657c9158ad04b8de104434c (diff) | |
download | frameworks_base-5fda65f182231b0e9ad61b1a6803c7603e29344f.zip frameworks_base-5fda65f182231b0e9ad61b1a6803c7603e29344f.tar.gz frameworks_base-5fda65f182231b0e9ad61b1a6803c7603e29344f.tar.bz2 |
Add a method to destroy the RS object.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/renderscript/RSSurfaceView.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/RSSurfaceView.java b/graphics/java/android/renderscript/RSSurfaceView.java index b46a749..63994ab 100644 --- a/graphics/java/android/renderscript/RSSurfaceView.java +++ b/graphics/java/android/renderscript/RSSurfaceView.java @@ -153,6 +153,9 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback return createRenderScript(useDepth, false); } - + public void destroyRenderScript() { + mRS.destroy(); + mRS = null; + } } |