diff options
author | nicolasroard <nicolasroard@google.com> | 2013-03-21 21:33:22 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-03-21 21:33:22 -0700 |
commit | cbbaef3e674898c3045486ae4930966c3dff1147 (patch) | |
tree | 90d4188ded60d061bc6ae47dc7f99cb40a6bd4ee /src/com/android/gallery3d/filtershow/tools | |
parent | dc19e2f107b02b62f887dc500e107ad8f4a9cb07 (diff) | |
download | android_packages_apps_Snap-cbbaef3e674898c3045486ae4930966c3dff1147.tar.gz android_packages_apps_Snap-cbbaef3e674898c3045486ae4930966c3dff1147.tar.bz2 android_packages_apps_Snap-cbbaef3e674898c3045486ae4930966c3dff1147.zip |
Fix problem applying the Fx filter
Also adds some debug info
bug:8442036
Change-Id: Ife7fd4be664ae011e41969e74c7745da0a7a52f5
Diffstat (limited to 'src/com/android/gallery3d/filtershow/tools')
-rw-r--r-- | src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java b/src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java index aa7e70065..35c155318 100644 --- a/src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java +++ b/src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java @@ -31,7 +31,9 @@ import android.util.Log; import com.android.gallery3d.common.Utils; import com.android.gallery3d.exif.ExifInterface; +import com.android.gallery3d.filtershow.cache.CachingPipeline; import com.android.gallery3d.filtershow.cache.ImageLoader; +import com.android.gallery3d.filtershow.filters.FiltersManager; import com.android.gallery3d.filtershow.presets.ImagePreset; import com.android.gallery3d.util.XmpUtilHelper; @@ -182,9 +184,8 @@ public class SaveCopyTask extends AsyncTask<ImagePreset, Void, Uri> { if (bitmap == null) { return null; } - preset.setupEnvironment(); - bitmap = preset.applyGeometry(bitmap); - bitmap = preset.apply(bitmap); + CachingPipeline pipeline = new CachingPipeline(FiltersManager.getManager(), "Saving"); + bitmap = pipeline.renderFinalImage(bitmap, preset); Object xmp = getPanoramaXMPData(sourceUri, preset); ExifInterface exif = getExifData(sourceUri); |