Add LUT3D filter state saving

Change-Id: I195fad1dcad5639c30a2eb94ce28cfd0a2464018
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java
index 1ceffb4..d0ba302 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 FilterFxRepresentation(String name, int bitmapResource, int nameResource) {
         super(name);
-        setSerializationName(SERIALIZATION_NAME);
+        setSerializationName(SERIALIZATION_NAME + "_" + name);
 
         mBitmapResource = bitmapResource;
         mNameResource = nameResource;
@@ -44,6 +42,7 @@
         setSupportsPartialRendering(true);
     }
 
+    @Override
     public String toString() {
         return "FilterFx: " + hashCode() + " : " + getName() + " bitmap rsc: " + mBitmapResource;
     }
@@ -57,6 +56,7 @@
         return representation;
     }
 
+    @Override
     public synchronized void useParametersFrom(FilterRepresentation a) {
         if (a instanceof FilterFxRepresentation) {
             FilterFxRepresentation representation = (FilterFxRepresentation) a;
@@ -81,6 +81,7 @@
         return false;
     }
 
+    @Override
     public boolean same(FilterRepresentation representation) {
         if (!super.same(representation)) {
             return false;
@@ -88,6 +89,7 @@
         return equals(representation);
     }
 
+    @Override
     public boolean allowsMultipleInstances() {
         return true;
     }