diff options
author | Tim Murray <timmurray@google.com> | 2013-02-04 13:09:27 -0800 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2013-02-04 13:09:27 -0800 |
commit | 1ddbdc88f9b6e8ab26ba344c5bebb5b6fa220941 (patch) | |
tree | 6d5b1494d742188ab339c47d70ab59e37d1731fc /src/com/android/gallery3d/filtershow/filters | |
parent | 88e34ef6e25ec2ee63b0400accb9f500bf88dc96 (diff) | |
download | android_packages_apps_Snap-1ddbdc88f9b6e8ab26ba344c5bebb5b6fa220941.tar.gz android_packages_apps_Snap-1ddbdc88f9b6e8ab26ba344c5bebb5b6fa220941.tar.bz2 android_packages_apps_Snap-1ddbdc88f9b6e8ab26ba344c5bebb5b6fa220941.zip |
Switch Gallery over to RS compatibility library.
Change-Id: If27809236534f3b196949bf455faed45c99f3da5
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters')
-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; |