summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-04-02 15:55:55 -0700
committerJohn Hoford <hoford@google.com>2013-04-02 16:01:43 -0700
commit205a0901d5b070e8740e865079bd868c976c67c3 (patch)
treea3e8f4d037dadc24fb0018616353edf6571d20de /src
parent7bf0f568f7e09275477f1ff2a4ac107274798329 (diff)
downloadandroid_packages_apps_Gallery2-205a0901d5b070e8740e865079bd868c976c67c3.tar.gz
android_packages_apps_Gallery2-205a0901d5b070e8740e865079bd868c976c67c3.tar.bz2
android_packages_apps_Gallery2-205a0901d5b070e8740e865079bd868c976c67c3.zip
fix calling Allocation.copyFrom without context
bug:8526929 Change-Id: I407539fae153642ea9be46a2f4102ab827e24164
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/cache/CachingPipeline.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java b/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java
index 8c312a92b..4279b47fb 100644
--- a/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java
+++ b/src/com/android/gallery3d/filtershow/cache/CachingPipeline.java
@@ -393,7 +393,9 @@ public class CachingPipeline {
mOutPixelsAllocation.getType());
needsUpdate = true;
}
- mInPixelsAllocation.copyFrom(bitmap);
+ if (RS != null) {
+ mInPixelsAllocation.copyFrom(bitmap);
+ }
if (bitmap.getWidth() != mWidth
|| bitmap.getHeight() != mHeight) {
mWidth = bitmap.getWidth();