summaryrefslogtreecommitdiffstats
path: root/tests/HwAccelerationTest
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2011-06-22 23:05:40 -0700
committerGrace Kloba <klobag@google.com>2011-06-22 23:05:40 -0700
commitcf559377b750271472aa0a717bf3b7d34abc0b39 (patch)
treed7559dc48209ea1fe84c134ec5b83803dd5a1377 /tests/HwAccelerationTest
parentea5f51909be34bdaec9d17320aaf25ffa56e76e9 (diff)
downloadframeworks_base-cf559377b750271472aa0a717bf3b7d34abc0b39.zip
frameworks_base-cf559377b750271472aa0a717bf3b7d34abc0b39.tar.gz
frameworks_base-cf559377b750271472aa0a717bf3b7d34abc0b39.tar.bz2
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 'tests/HwAccelerationTest')
-rw-r--r--tests/HwAccelerationTest/src/com/android/test/hwui/GLTextureViewActivity.java4
-rw-r--r--tests/HwAccelerationTest/src/com/android/test/hwui/GetBitmapActivity.java5
-rw-r--r--tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java5
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/GLTextureViewActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/GLTextureViewActivity.java
index 9bb5ba8..723f3e8 100644
--- a/tests/HwAccelerationTest/src/com/android/test/hwui/GLTextureViewActivity.java
+++ b/tests/HwAccelerationTest/src/com/android/test/hwui/GLTextureViewActivity.java
@@ -85,6 +85,10 @@ public class GLTextureViewActivity extends Activity implements TextureView.Surfa
}
}
+ @Override
+ public void onSurfaceTextureUpdated(SurfaceTexture surface) {
+ }
+
private static class RenderThread extends Thread {
private static final String LOG_TAG = "GLTextureView";
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/GetBitmapActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/GetBitmapActivity.java
index 2e23aaa..f420fa0 100644
--- a/tests/HwAccelerationTest/src/com/android/test/hwui/GetBitmapActivity.java
+++ b/tests/HwAccelerationTest/src/com/android/test/hwui/GetBitmapActivity.java
@@ -100,4 +100,9 @@ public class GetBitmapActivity extends Activity implements TextureView.SurfaceTe
mCamera.stopPreview();
mCamera.release();
}
+
+ @Override
+ public void onSurfaceTextureUpdated(SurfaceTexture surface) {
+ // Ignored
+ }
}
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java
index 9bc1fe0..01ee90a 100644
--- a/tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java
+++ b/tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java
@@ -109,4 +109,9 @@ public class TextureViewActivity extends Activity implements TextureView.Surface
mCamera.stopPreview();
mCamera.release();
}
+
+ @Override
+ public void onSurfaceTextureUpdated(SurfaceTexture surface) {
+ // Ignored
+ }
}