diff options
author | nicolasroard <nicolasroard@google.com> | 2013-02-22 11:35:41 -0800 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-02-22 11:35:56 -0800 |
commit | bd940c98109d8cf605d81281add83ffe787c4842 (patch) | |
tree | ee43de9a7125c78cbc2de8f5b725b5e6270bcc93 /src | |
parent | 8d363f83371b18bef02ad7aeeacc5060f3097c96 (diff) | |
download | android_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.java | 4 |
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); |