diff options
author | Romain Guy <romainguy@google.com> | 2011-08-16 13:55:02 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2011-08-16 13:55:02 -0700 |
commit | 302a9df1d50373c82923bb84ff665dfce584fb22 (patch) | |
tree | 01a6e183b3c0f49676730a679397a31692942f8d /tests/HwAccelerationTest/src | |
parent | 95a78c38373bb99258d83a6ab2c92825d979f200 (diff) | |
download | frameworks_base-302a9df1d50373c82923bb84ff665dfce584fb22.zip frameworks_base-302a9df1d50373c82923bb84ff665dfce584fb22.tar.gz frameworks_base-302a9df1d50373c82923bb84ff665dfce584fb22.tar.bz2 |
Add an API to set the transform on a TextureView's surface texture.
Bug #5156689
Change-Id: I635a625885c9b832a60d44ece0de7613ceb84109
Diffstat (limited to 'tests/HwAccelerationTest/src')
-rw-r--r-- | tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java index 97e2108..fcb57d9 100644 --- a/tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java +++ b/tests/HwAccelerationTest/src/com/android/test/hwui/TextureViewActivity.java @@ -17,6 +17,7 @@ package com.android.test.hwui; import android.app.Activity; +import android.graphics.Matrix; import android.graphics.SurfaceTexture; import android.hardware.Camera; import android.os.Bundle; @@ -33,6 +34,7 @@ public class TextureViewActivity extends Activity implements TextureView.Surface private Camera mCamera; private TextureView mTextureView; private FrameLayout mContent; + private Matrix mMatrix = new Matrix(); @Override protected void onCreate(Bundle savedInstanceState) { @@ -82,8 +84,6 @@ public class TextureViewActivity extends Activity implements TextureView.Surface } mCamera.startPreview(); - - mTextureView.setCameraDistance(5000); } @Override |