From ea332c69f084322ebdd13419424ee5fab2351760 Mon Sep 17 00:00:00 2001 From: nicolasroard Date: Fri, 22 Feb 2013 11:35:41 -0800 Subject: [PATCH] Don't apply the filters twice in partial rendering... Change-Id: I5ddcb74e2a6cf09852eec0049bee47581b402f28 --- src/com/android/gallery3d/filtershow/cache/ImageLoader.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/gallery3d/filtershow/cache/ImageLoader.java b/src/com/android/gallery3d/filtershow/cache/ImageLoader.java index 25bb6b60a..df4f3fd3a 100644 --- a/src/com/android/gallery3d/filtershow/cache/ImageLoader.java +++ b/src/com/android/gallery3d/filtershow/cache/ImageLoader.java @@ -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); -- 2.11.0