diff options
author | Grace Kloba <klobag@google.com> | 2011-06-22 23:05:40 -0700 |
---|---|---|
committer | Grace Kloba <klobag@google.com> | 2011-06-22 23:05:40 -0700 |
commit | cf559377b750271472aa0a717bf3b7d34abc0b39 (patch) | |
tree | d7559dc48209ea1fe84c134ec5b83803dd5a1377 /graphics/java/android/renderscript/RSTextureView.java | |
parent | ea5f51909be34bdaec9d17320aaf25ffa56e76e9 (diff) |
Add onSurfaceTextureUpdated to the TextureView listener.
The app needs a way to throttle the producer side. Expose this to enable it.
Change-Id: I04b6a3fc444117a9fc2449fb87c3c834247c8ef1
Diffstat (limited to 'graphics/java/android/renderscript/RSTextureView.java')
-rw-r--r-- | graphics/java/android/renderscript/RSTextureView.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/RSTextureView.java b/graphics/java/android/renderscript/RSTextureView.java index f63ae8dcd68e..6046ee14656d 100644 --- a/graphics/java/android/renderscript/RSTextureView.java +++ b/graphics/java/android/renderscript/RSTextureView.java @@ -94,6 +94,12 @@ public class RSTextureView extends TextureView implements TextureView.SurfaceTex } } + @Override + public void onSurfaceTextureUpdated(SurfaceTexture surface) { + //Log.e(RenderScript.LOG_TAG, "onSurfaceTextureUpdated"); + mSurfaceTexture = surface; + } + /** * 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 |