OSDN Git Service

Remove black borders in Manta LightCycle capture after orientation change.
authorGeorge Mount <mount@google.com>
Wed, 24 Oct 2012 22:07:50 +0000 (15:07 -0700)
committerGeorge Mount <mount@google.com>
Fri, 26 Oct 2012 22:59:30 +0000 (15:59 -0700)
 Bug 7344906

Change-Id: I70017e4479962d49aedb06ea7b050f638e00fc06

src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java

index 7cb8948..ceed71a 100644 (file)
@@ -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;