diff options
author | nicolasroard <nicolasroard@google.com> | 2013-05-01 23:36:34 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-05-01 23:36:34 -0700 |
commit | 51d8cd77fd65f260c44cdb735a16322285aab342 (patch) | |
tree | e3b5793b5b74ed861a8346b3e0e61904398fbc4c /src/com/android/gallery3d/filtershow/imageshow | |
parent | 4c0d9138fda2ef04b2abd52ec93ed8715f00bb52 (diff) | |
parent | f6c71858b1a6d39eab259bc593e3b4dd096daeef (diff) | |
download | android_packages_apps_Snap-51d8cd77fd65f260c44cdb735a16322285aab342.tar.gz android_packages_apps_Snap-51d8cd77fd65f260c44cdb735a16322285aab342.tar.bz2 android_packages_apps_Snap-51d8cd77fd65f260c44cdb735a16322285aab342.zip |
am f469a168: Fix flashing (remove clipping)
* commit 'f469a1689a9563f3c5bb68f46a5d9cd152d67053':
Fix flashing (remove clipping)
Diffstat (limited to 'src/com/android/gallery3d/filtershow/imageshow')
-rw-r--r-- | src/com/android/gallery3d/filtershow/imageshow/ImageShow.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java b/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java index e19a7554f..b833cf858 100644 --- a/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java +++ b/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java @@ -307,7 +307,12 @@ public class ImageShow extends View implements OnGestureListener, scalingMatrix.mapRect(unscaledClipRect, unscaledClipRect); canvas.save(); - if (!unscaledClipRect.isEmpty()) { + + boolean enablePartialRendering = false; + + // For now, partial rendering is disabled for all filters, + // so no need to clip. + if (enablePartialRendering && !unscaledClipRect.isEmpty()) { canvas.clipRect(unscaledClipRect); } @@ -466,7 +471,7 @@ public class ImageShow extends View implements OnGestureListener, canvas.drawBitmap(mBackgroundImage, s, d, mPaint); } } else { - canvas.drawColor(mBackgroundColor); + canvas.drawARGB(0, 0, 0, 0); } } |