summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2012-10-24 15:07:50 -0700
committerGeorge Mount <mount@google.com>2012-10-26 15:59:30 -0700
commit3bf329fbf1d314f3e1f219cff60b098e7c81452f (patch)
treec4e24660a68e86f896c54b87c1cc01b639f1f26b /src
parent3b6743cb518f090d7c3ac427122e54122ad85ce6 (diff)
downloadandroid_packages_apps_Snap-3bf329fbf1d314f3e1f219cff60b098e7c81452f.tar.gz
android_packages_apps_Snap-3bf329fbf1d314f3e1f219cff60b098e7c81452f.tar.bz2
android_packages_apps_Snap-3bf329fbf1d314f3e1f219cff60b098e7c81452f.zip
Remove black borders in Manta LightCycle capture after orientation change.
Bug 7344906 Change-Id: I70017e4479962d49aedb06ea7b050f638e00fc06
Diffstat (limited to 'src')
-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;