diff options
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java index 595aa9b30..2ebd61f3d 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java @@ -108,7 +108,7 @@ public abstract class ImageFilterRS extends ImageFilter { return sRS; } - public static synchronized void setRenderScriptContext(Activity context) { + public static synchronized void createRenderscriptContext(Activity context) { if( sRS != null) { Log.w(LOGTAG, "A prior RS context exists when calling setRenderScriptContext"); destroyRenderScriptContext(); @@ -144,12 +144,12 @@ public abstract class ImageFilterRS extends ImageFilter { } private static synchronized Allocation convertRGBAtoA(Bitmap bitmap) { - Type.Builder tb_a8 = new Type.Builder(sRS, Element.U8(sRS)); + Type.Builder tb_a8 = new Type.Builder(sRS, Element.A_8(sRS)); ScriptC_grey greyConvert = new ScriptC_grey(sRS, sRS.getApplicationContext().getResources(), R.raw.grey); Allocation bitmapTemp = convertBitmap(bitmap); - if (bitmapTemp.getType().getElement().isCompatible(Element.U8(sRS))) { + if (bitmapTemp.getType().getElement().isCompatible(Element.A_8(sRS))) { return bitmapTemp; } |