diff options
| author | George Mount <mount@google.com> | 2012-10-24 15:07:50 -0700 |
|---|---|---|
| committer | George Mount <mount@google.com> | 2012-10-26 15:59:30 -0700 |
| commit | b6d494925ea14a02ef75f58d5d969d7586914ef7 (patch) | |
| tree | 70dcd7c4fccaef721f54085b1a61df8911993120 /src | |
| parent | 88870365af146d05162742c5f613fc92483b0a93 (diff) | |
| download | android_packages_apps_Gallery2-b6d494925ea14a02ef75f58d5d969d7586914ef7.tar.gz android_packages_apps_Gallery2-b6d494925ea14a02ef75f58d5d969d7586914ef7.tar.bz2 android_packages_apps_Gallery2-b6d494925ea14a02ef75f58d5d969d7586914ef7.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.java | 7 |
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; |
