commit | 33acee47cf7e6e107321fdbe4b78554ed2dd6728 | [log] [tgz] |
---|---|---|
author | John Hoford <hoford@google.com> | Tue Apr 02 15:55:55 2013 -0700 |
committer | John Hoford <hoford@google.com> | Tue Apr 02 16:01:43 2013 -0700 |
tree | 448755f8ef3ef689baa2fd5fad62ee7d544a0e7c | |
parent | f16b61831d53b1319f6543e1df616805b34b5279 [diff] |
fix calling Allocation.copyFrom without context bug:8526929 Change-Id: I407539fae153642ea9be46a2f4102ab827e24164
diff --git a/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java b/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java index 8c312a9..4279b47 100644 --- a/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java +++ b/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java
@@ -393,7 +393,9 @@ mOutPixelsAllocation.getType()); needsUpdate = true; } - mInPixelsAllocation.copyFrom(bitmap); + if (RS != null) { + mInPixelsAllocation.copyFrom(bitmap); + } if (bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) { mWidth = bitmap.getWidth();