diff options
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; } |