summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-02-04 13:09:27 -0800
committerTim Murray <timmurray@google.com>2013-02-04 13:09:27 -0800
commit1ddbdc88f9b6e8ab26ba344c5bebb5b6fa220941 (patch)
tree6d5b1494d742188ab339c47d70ab59e37d1731fc /src/com/android/gallery3d/filtershow/filters
parent88e34ef6e25ec2ee63b0400accb9f500bf88dc96 (diff)
downloadandroid_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.java6
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;