From 1bfb4e42a0dd97a78cd13d35f0c2b7add600357c Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Wed, 29 Jul 2015 12:56:27 -0700 Subject: Create RenderScript ScriptC without resourceID. - Fix build - Enable Gallery2 to able to build for 64bit. Bug: 22693954 Bug: 15275515 Change-Id: I394e6e2d98052d8c3c4c011f9807308b9ca9ab86 --- src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java') 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; } -- cgit v1.2.3