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, 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 ab2d304a4..ab92e4e5c 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java @@ -31,9 +31,10 @@ public class ImageFilterRS extends ImageFilter { mOutPixelsAllocation.copyTo(bitmap); } - public void apply(Bitmap bitmap) { + @Override + public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { if (bitmap == null) { - return; + return bitmap; } try { prepare(bitmap); @@ -45,6 +46,7 @@ public class ImageFilterRS extends ImageFilter { } catch (android.renderscript.RSRuntimeException e) { Log.e(LOGTAG, "RS runtime exception ? " + e); } + return bitmap; } public static RenderScript getRenderScriptContext() { |