diff options
author | nicolasroard <nicolasroard@google.com> | 2013-07-01 16:58:51 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-07-01 17:45:59 -0700 |
commit | a9be5b3d573b1b5511300272fca5b320bdc0aae0 (patch) | |
tree | 4883b1a18d48df81d1d2f430bc393cc43172ea8d /src/com/android/gallery3d/filtershow/presets/FilterEnvironment.java | |
parent | a18a161d3b46152b9114a5005efe8a043286c19d (diff) | |
download | android_packages_apps_Snap-a9be5b3d573b1b5511300272fca5b320bdc0aae0.tar.gz android_packages_apps_Snap-a9be5b3d573b1b5511300272fca5b320bdc0aae0.tar.bz2 android_packages_apps_Snap-a9be5b3d573b1b5511300272fca5b320bdc0aae0.zip |
Pipeline refactoring
Add SharedBuffer and Buffer class
Change-Id: I823a9520541e3be5321a3deb5e58a358588b6cf3
Diffstat (limited to 'src/com/android/gallery3d/filtershow/presets/FilterEnvironment.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/presets/FilterEnvironment.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/presets/FilterEnvironment.java b/src/com/android/gallery3d/filtershow/presets/FilterEnvironment.java index 8d59c9f54..6a130a3e3 100644 --- a/src/com/android/gallery3d/filtershow/presets/FilterEnvironment.java +++ b/src/com/android/gallery3d/filtershow/presets/FilterEnvironment.java @@ -22,6 +22,7 @@ import android.support.v8.renderscript.Allocation; import com.android.gallery3d.filtershow.filters.FilterRepresentation; import com.android.gallery3d.filtershow.filters.FiltersManagerInterface; import com.android.gallery3d.filtershow.filters.ImageFilter; +import com.android.gallery3d.filtershow.pipeline.Buffer; import java.lang.ref.WeakReference; import java.util.HashMap; @@ -53,7 +54,11 @@ public class FilterEnvironment { private HashMap<Integer, Integer> generalParameters = new HashMap<Integer, Integer>(); - public void cache(Bitmap bitmap) { + public void cache(Buffer buffer) { + if (buffer == null) { + return; + } + Bitmap bitmap = buffer.getBitmap(); if (bitmap == null) { return; } |