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 | 7f7755f76210a500e6ce63bfa880f23303556294 (patch) | |
tree | 67b3e0f6f031c8548c15557eb769de91094ff2c1 /src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java | |
parent | cf68d2f5d9f886995797a3fc8e844a0602227224 (diff) | |
download | android_packages_apps_Gallery2-7f7755f76210a500e6ce63bfa880f23303556294.tar.gz android_packages_apps_Gallery2-7f7755f76210a500e6ce63bfa880f23303556294.tar.bz2 android_packages_apps_Gallery2-7f7755f76210a500e6ce63bfa880f23303556294.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/FilterRepresentation.java')
-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; } |