summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-02-22 11:35:41 -0800
committernicolasroard <nicolasroard@google.com>2013-02-22 11:35:56 -0800
commitbd940c98109d8cf605d81281add83ffe787c4842 (patch)
treeee43de9a7125c78cbc2de8f5b725b5e6270bcc93 /src
parent8d363f83371b18bef02ad7aeeacc5060f3097c96 (diff)
downloadandroid_packages_apps_Snap-bd940c98109d8cf605d81281add83ffe787c4842.tar.gz
android_packages_apps_Snap-bd940c98109d8cf605d81281add83ffe787c4842.tar.bz2
android_packages_apps_Snap-bd940c98109d8cf605d81281add83ffe787c4842.zip
Don't apply the filters twice in partial rendering...
Change-Id: I5ddcb74e2a6cf09852eec0049bee47581b402f28
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/cache/ImageLoader.java4
1 files changed, 4 insertions, 0 deletions
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);