summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2011-08-09 18:47:17 -0700
committerGrace Kloba <klobag@google.com>2011-08-09 18:47:17 -0700
commit402f05530352f34d5320c2d23be43c274d97c4e2 (patch)
treef16fff92ad3dead45679fff4ee4c7c3fdb5888bb /graphics
parent5229f7f2266c25f976070e0c2007e425010152ff (diff)
downloadframeworks_base-402f05530352f34d5320c2d23be43c274d97c4e2.zip
frameworks_base-402f05530352f34d5320c2d23be43c274d97c4e2.tar.gz
frameworks_base-402f05530352f34d5320c2d23be43c274d97c4e2.tar.bz2
Add a return value for SurfaceTextureListener#onSurfaceTextureDestroyed.
If returns true, the SurfaceTexture will be released by TextureView. If returns false, the client needs to release the SurfaceTexture. Change-Id: I946f71e337ad4170c168854ac27e028b82489c8c
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/renderscript/RSTextureView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/RSTextureView.java b/graphics/java/android/renderscript/RSTextureView.java
index b8dd577..30b2f99 100644
--- a/graphics/java/android/renderscript/RSTextureView.java
+++ b/graphics/java/android/renderscript/RSTextureView.java
@@ -85,13 +85,15 @@ public class RSTextureView extends TextureView implements TextureView.SurfaceTex
}
@Override
- public void onSurfaceTextureDestroyed(SurfaceTexture surface) {
+ public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
//Log.e(RenderScript.LOG_TAG, "onSurfaceTextureDestroyed");
mSurfaceTexture = surface;
if (mRS != null) {
mRS.setSurfaceTexture(null, 0, 0);
}
+
+ return true;
}
@Override