summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2012-10-26 16:46:12 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-26 16:46:12 -0700
commitddb06d2f9df30e6ee966a4741781ff7ea6872568 (patch)
tree22bb55745674cca4617364ef030b79508feb7754
parentfb960cea164c92d024bdb97de28a18fcbc3a75da (diff)
parent3bf329fbf1d314f3e1f219cff60b098e7c81452f (diff)
downloadandroid_packages_apps_Snap-ddb06d2f9df30e6ee966a4741781ff7ea6872568.tar.gz
android_packages_apps_Snap-ddb06d2f9df30e6ee966a4741781ff7ea6872568.tar.bz2
android_packages_apps_Snap-ddb06d2f9df30e6ee966a4741781ff7ea6872568.zip
am b6d49492: Remove black borders in Manta LightCycle capture after orientation change.
* commit 'b6d494925ea14a02ef75f58d5d969d7586914ef7': Remove black borders in Manta LightCycle capture after orientation change.
-rw-r--r--src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java b/src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java
index 7cb894845..ceed71abe 100644
--- a/src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java
+++ b/src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java
@@ -85,6 +85,13 @@ public abstract class SurfaceTextureScreenNail implements ScreenNail,
mHeight = height;
}
+ public void resizeTexture() {
+ if (mExtTexture != null) {
+ mExtTexture.setSize(mWidth, mHeight);
+ setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight);
+ }
+ }
+
@Override
public int getWidth() {
return mWidth;