commit | 2b28723e58966471cde60d9452cc90e860df1d20 | [log] [tgz] |
---|---|---|
author | nicolasroard <nicolasroard@google.com> | Mon Apr 01 21:33:20 2013 -0700 |
committer | nicolasroard <nicolasroard@google.com> | Mon Apr 01 21:33:20 2013 -0700 |
tree | 8c27d33fd26475beb2b4f3547b3415a58b4f80f6 | |
parent | 475a821d2bd16590c0a4c61cf3fca9228636c534 [diff] |
Don't try freeing resources on a different thread.. This call to freeResources happens on the main thread. It's also not really useful. The geometry instance shouldn't be shared either. bug:8522497 Change-Id: I7b144713428ab803b3640b3d8226fd862db824f4
diff --git a/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java b/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java index ecfdaba..752e1c2 100644 --- a/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java +++ b/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java
@@ -309,7 +309,6 @@ } setupEnvironment(preset, false); mEnvironment.setQuality(ImagePreset.QUALITY_PREVIEW); - mFiltersManager.freeFilterResources(preset); bitmap = preset.applyGeometry(bitmap, mEnvironment); return bitmap; }