diff options
author | ztenghui <ztenghui@google.com> | 2013-06-03 18:16:43 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-06-03 18:16:44 +0000 |
commit | d93c11de769ce07c9821381ca91efe3ae50de043 (patch) | |
tree | a8e37caab386d513626f5087eb6023198486af00 /src/com/android | |
parent | 625cb9c8c33ad4f4d54468e8cc5afd469a3ae7b6 (diff) | |
parent | c2efb326a63e869b2e1e5fcf693795d68eb66bfe (diff) | |
download | android_packages_apps_Snap-d93c11de769ce07c9821381ca91efe3ae50de043.tar.gz android_packages_apps_Snap-d93c11de769ce07c9821381ca91efe3ae50de043.tar.bz2 android_packages_apps_Snap-d93c11de769ce07c9821381ca91efe3ae50de043.zip |
Merge "Add LUT3D filter state saving" into gb-ub-photos-carlsbad
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java index 1ceffb4a2..d0ba302c7 100644 --- a/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java +++ b/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java @@ -16,8 +16,6 @@ package com.android.gallery3d.filtershow.filters; -import android.graphics.Bitmap; -import com.android.gallery3d.app.Log; import com.android.gallery3d.filtershow.editors.ImageOnlyEditor; public class FilterFxRepresentation extends FilterRepresentation { @@ -30,7 +28,7 @@ public class FilterFxRepresentation extends FilterRepresentation { public FilterFxRepresentation(String name, int bitmapResource, int nameResource) { super(name); - setSerializationName(SERIALIZATION_NAME); + setSerializationName(SERIALIZATION_NAME + "_" + name); mBitmapResource = bitmapResource; mNameResource = nameResource; @@ -44,6 +42,7 @@ public class FilterFxRepresentation extends FilterRepresentation { setSupportsPartialRendering(true); } + @Override public String toString() { return "FilterFx: " + hashCode() + " : " + getName() + " bitmap rsc: " + mBitmapResource; } @@ -57,6 +56,7 @@ public class FilterFxRepresentation extends FilterRepresentation { return representation; } + @Override public synchronized void useParametersFrom(FilterRepresentation a) { if (a instanceof FilterFxRepresentation) { FilterFxRepresentation representation = (FilterFxRepresentation) a; @@ -81,6 +81,7 @@ public class FilterFxRepresentation extends FilterRepresentation { return false; } + @Override public boolean same(FilterRepresentation representation) { if (!super.same(representation)) { return false; @@ -88,6 +89,7 @@ public class FilterFxRepresentation extends FilterRepresentation { return equals(representation); } + @Override public boolean allowsMultipleInstances() { return true; } |