summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2015-07-29 22:24:21 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-29 22:24:21 +0000
commite71248e4da5f3109e3296574981460ab04cd8339 (patch)
tree0a481ee8e38f977cd9c8bbde4f3a7a1c6d7fe5df /src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
parenta2aab1aa459c2f16016e0bc2bd4e93aee2d39c27 (diff)
parent1bfb4e42a0dd97a78cd13d35f0c2b7add600357c (diff)
downloadandroid_packages_apps_Gallery2-e71248e4da5f3109e3296574981460ab04cd8339.tar.gz
android_packages_apps_Gallery2-e71248e4da5f3109e3296574981460ab04cd8339.tar.bz2
android_packages_apps_Gallery2-e71248e4da5f3109e3296574981460ab04cd8339.zip
am 1bfb4e42: Create RenderScript ScriptC without resourceID.
* commit '1bfb4e42a0dd97a78cd13d35f0c2b7add600357c': Create RenderScript ScriptC without resourceID.
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
index 9a494d823..e94e2a63a 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
@@ -159,8 +159,7 @@ public abstract class ImageFilterRS extends ImageFilter {
private static Allocation convertRGBAtoA(RenderScript RS, Bitmap bitmap) {
if (RS != mRScache || mGreyConvert == null) {
- mGreyConvert = new ScriptC_grey(RS, RS.getApplicationContext().getResources(),
- R.raw.grey);
+ mGreyConvert = new ScriptC_grey(RS);
mRScache = RS;
}