diff options
author | nicolasroard <nicolasroard@google.com> | 2013-07-02 11:00:01 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-07-02 12:42:21 -0700 |
commit | f1f0d01da7742d46a546176081b441bdd23378f6 (patch) | |
tree | 3eef00dd8858bf7ac19ad4fbab8e1d14ade24126 /src/com/android/gallery3d/filtershow/filters | |
parent | a9be5b3d573b1b5511300272fca5b320bdc0aae0 (diff) | |
download | android_packages_apps_Snap-f1f0d01da7742d46a546176081b441bdd23378f6.tar.gz android_packages_apps_Snap-f1f0d01da7742d46a546176081b441bdd23378f6.tar.bz2 android_packages_apps_Snap-f1f0d01da7742d46a546176081b441bdd23378f6.zip |
Pipeline refactoring
Remove the temp representations and instead use a triple
buffer for ImagePresets.
Change-Id: I4cdcfbe4941af72b38fe42385085ff4a20eb78cc
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java index a60410d2b..e6018bb75 100644 --- a/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java +++ b/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java @@ -47,8 +47,6 @@ public class FilterRepresentation implements Cloneable { public static final byte TYPE_TINYPLANET = 6; protected static final String NAME_TAG = "Name"; - private FilterRepresentation mTempRepresentation = null; - public FilterRepresentation(String name) { mName = name; } @@ -67,8 +65,6 @@ public class FilterRepresentation implements Cloneable { representation.setShowParameterValue(showParameterValue()); representation.mSerializationName = mSerializationName; - representation.mTempRepresentation = - mTempRepresentation != null ? mTempRepresentation.clone() : null; if (DEBUG) { Log.v(LOGTAG, "cloning from <" + this + "> to <" + representation + ">"); } @@ -140,28 +136,6 @@ public class FilterRepresentation implements Cloneable { public void useParametersFrom(FilterRepresentation a) { } - public void clearTempRepresentation() { - mTempRepresentation = null; - } - - public synchronized void updateTempParametersFrom(FilterRepresentation representation) { - if (mTempRepresentation == null) { - try { - mTempRepresentation = representation.clone(); - } catch (CloneNotSupportedException e) { - e.printStackTrace(); - } - } else { - mTempRepresentation.useParametersFrom(representation); - } - } - - public synchronized void synchronizeRepresentation() { - if (mTempRepresentation != null) { - useParametersFrom(mTempRepresentation); - } - } - public boolean allowsSingleInstanceOnly() { return false; } |