summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-01-23 18:38:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-01-23 18:38:42 +0000
commitc2caaf8053376dbe0253dcd3d85873decce7fab6 (patch)
tree133476d61d99de60e9feb0b2ee1baa60dcbf3ac3 /src/com/android/gallery3d/filtershow/filters
parentc1a6a49b4364b5b3bd54c8c2dca377b8791a8172 (diff)
downloadandroid_packages_apps_Snap-c2caaf8053376dbe0253dcd3d85873decce7fab6.tar.gz
android_packages_apps_Snap-c2caaf8053376dbe0253dcd3d85873decce7fab6.tar.bz2
android_packages_apps_Snap-c2caaf8053376dbe0253dcd3d85873decce7fab6.zip
Revert "Switch Gallery over to RS compatibility library."
This reverts commit 0746ce0977cde616d25ce35fee0d8d554235a21c Change-Id: Ic0fb6c60e5f40b53ad032afeafe2f9ff70c26b50
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
index 368e29a78..63dc82c34 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
@@ -18,7 +18,9 @@ package com.android.gallery3d.filtershow.filters;
import android.app.Activity;
import android.graphics.Bitmap;
-import android.support.v8.renderscript.*;
+import android.renderscript.Allocation;
+import android.renderscript.Allocation.MipmapControl;
+import android.renderscript.RenderScript;
import android.util.Log;
public class ImageFilterRS extends ImageFilter {
@@ -46,7 +48,7 @@ public class ImageFilterRS extends ImageFilter {
}
Bitmap bitmapBuffer = bitmap.copy(mBitmapConfig, true);
mOutPixelsAllocation = Allocation.createFromBitmap(mRS, bitmapBuffer,
- Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT);
+ MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT);
mInPixelsAllocation = Allocation.createTyped(mRS,
mOutPixelsAllocation.getType());
sOldBitmap = bitmap;