diff options
author | nicolasroard <nicolasroard@google.com> | 2013-02-06 18:40:09 -0800 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-02-07 11:43:36 -0800 |
commit | 895cb496eddf5db0abff55100bdb2730a2515cae (patch) | |
tree | 9b23b08b736855677bef0bf17dec62794b29b0ad /src/com/android/gallery3d/filtershow/filters | |
parent | 082803ec883c8182485872bbc34b63705b04d101 (diff) | |
download | android_packages_apps_Snap-895cb496eddf5db0abff55100bdb2730a2515cae.tar.gz android_packages_apps_Snap-895cb496eddf5db0abff55100bdb2730a2515cae.tar.bz2 android_packages_apps_Snap-895cb496eddf5db0abff55100bdb2730a2515cae.zip |
Fix filters only + geometry only rendering
Change-Id: Id8f0637ae53864488cb931def196ee50ae807f5c
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java index ca32fee46..368e29a78 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java @@ -45,7 +45,8 @@ public class ImageFilterRS extends ImageFilter { mOutPixelsAllocation.destroy(); } Bitmap bitmapBuffer = bitmap.copy(mBitmapConfig, true); - mOutPixelsAllocation = Allocation.createFromBitmap(mRS, bitmapBuffer); + mOutPixelsAllocation = Allocation.createFromBitmap(mRS, bitmapBuffer, + Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT); mInPixelsAllocation = Allocation.createTyped(mRS, mOutPixelsAllocation.getType()); sOldBitmap = bitmap; |