diff options
author | Stephen Hines <srhines@google.com> | 2013-01-16 17:54:08 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2013-01-22 18:06:10 -0800 |
commit | c1a6a49b4364b5b3bd54c8c2dca377b8791a8172 (patch) | |
tree | 6bc9ab50366ae9e041346dd1e7b80f3e1cfd01b1 /src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java | |
parent | 87463e150b1f52086ecf7d597636ba83e7f93b8f (diff) | |
download | android_packages_apps_Snap-c1a6a49b4364b5b3bd54c8c2dca377b8791a8172.tar.gz android_packages_apps_Snap-c1a6a49b4364b5b3bd54c8c2dca377b8791a8172.tar.bz2 android_packages_apps_Snap-c1a6a49b4364b5b3bd54c8c2dca377b8791a8172.zip |
Switch Gallery over to RS compatibility library.
Change-Id: If6eaea15a12a1448b402fb00dfd770b3749471ad
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java index 63dc82c34..368e29a78 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java @@ -18,9 +18,7 @@ package com.android.gallery3d.filtershow.filters; import android.app.Activity; import android.graphics.Bitmap; -import android.renderscript.Allocation; -import android.renderscript.Allocation.MipmapControl; -import android.renderscript.RenderScript; +import android.support.v8.renderscript.*; import android.util.Log; public class ImageFilterRS extends ImageFilter { @@ -48,7 +46,7 @@ public class ImageFilterRS extends ImageFilter { } Bitmap bitmapBuffer = bitmap.copy(mBitmapConfig, true); mOutPixelsAllocation = Allocation.createFromBitmap(mRS, bitmapBuffer, - MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT); + Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT); mInPixelsAllocation = Allocation.createTyped(mRS, mOutPixelsAllocation.getType()); sOldBitmap = bitmap; |