summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/presets
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-02-13 15:51:25 -0800
committernicolasroard <nicolasroard@google.com>2013-02-13 15:51:25 -0800
commit147af26e86b7fa8f2d195651e3786c0102346702 (patch)
tree0880fb966ba971ceb0358dd5216923a69e9700bd /src/com/android/gallery3d/filtershow/presets
parentda7b84da52579cc967816e11f10acd9d9b3c714b (diff)
downloadandroid_packages_apps_Snap-147af26e86b7fa8f2d195651e3786c0102346702.tar.gz
android_packages_apps_Snap-147af26e86b7fa8f2d195651e3786c0102346702.tar.bz2
android_packages_apps_Snap-147af26e86b7fa8f2d195651e3786c0102346702.zip
Fix sync representations
Change-Id: I8b1b159a2350f7ee8bcdc7e71faf82ab5df2755b
Diffstat (limited to 'src/com/android/gallery3d/filtershow/presets')
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePreset.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
index e3594848c..84266c55d 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
@@ -130,7 +130,7 @@ public class ImagePreset {
synchronized (mFilters) {
int position = getPositionForRepresentation(representation);
FilterRepresentation old = mFilters.elementAt(position);
- old.useParametersFrom(representation);
+ old.updateTempParametersFrom(representation);
}
MasterImage.getImage().invalidatePreview();
}
@@ -388,6 +388,7 @@ public class ImagePreset {
public Bitmap applyBorder(Bitmap bitmap) {
if (mBorder != null && mDoApplyGeometry) {
ImageFilter filter = FiltersManager.getManager().getFilterForRepresentation(mBorder);
+ mBorder.synchronizeRepresentation();
filter.useRepresentation(mBorder);
filter.setImagePreset(this);
bitmap = filter.apply(bitmap, mScaleFactor, mQuality);
@@ -408,6 +409,7 @@ public class ImagePreset {
FilterRepresentation representation = null;
synchronized (mFilters) {
representation = mFilters.elementAt(i);
+ representation.synchronizeRepresentation();
}
ImageFilter filter = FiltersManager.getManager().getFilterForRepresentation(representation);
filter.useRepresentation(representation);