OSDN Git Service

Don't apply the filters twice in partial rendering...
authornicolasroard <nicolasroard@google.com>
Fri, 22 Feb 2013 19:35:41 +0000 (11:35 -0800)
committernicolasroard <nicolasroard@google.com>
Fri, 22 Feb 2013 19:35:56 +0000 (11:35 -0800)
Change-Id: I5ddcb74e2a6cf09852eec0049bee47581b402f28

src/com/android/gallery3d/filtershow/cache/ImageLoader.java

index 25bb6b6..df4f3fd 100644 (file)
@@ -388,6 +388,10 @@ public class ImageLoader {
                 }
             }
             bmp = loadRegionBitmap(mUri, options, bounds);
+            if (destination != null) {
+                mLoadingLock.unlock();
+                return bmp;
+            }
             if (bmp != null) {
                 // TODO: this workaround for RS might not be needed ultimately
                 Bitmap bmp2 = bmp.copy(Bitmap.Config.ARGB_8888, true);