1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-06-29 04:44:47 +08:00

fix format

This commit is contained in:
wasabeef 2017-03-21 11:55:30 -07:00
parent 1a474cdd8c
commit 1264e01f6e

View File

@ -38,7 +38,7 @@ public class RSBlur {
rs = RenderScript.create(context); rs = RenderScript.create(context);
rs.setMessageHandler(new RenderScript.RSMessageHandler()); rs.setMessageHandler(new RenderScript.RSMessageHandler());
input = Allocation.createFromBitmap(rs, bitmap, Allocation.MipmapControl.MIPMAP_NONE, input = Allocation.createFromBitmap(rs, bitmap, Allocation.MipmapControl.MIPMAP_NONE,
Allocation.USAGE_SCRIPT); Allocation.USAGE_SCRIPT);
output = Allocation.createTyped(rs, input.getType()); output = Allocation.createTyped(rs, input.getType());
blur = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs)); blur = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
@ -51,13 +51,13 @@ public class RSBlur {
rs.destroy(); rs.destroy();
} }
if (input != null) { if (input != null) {
input.destroy(); input.destroy();
} }
if (output != null) { if (output != null) {
output.destroy(); output.destroy();
} }
if (blur != null) { if (blur != null) {
blur.destroy(); blur.destroy();
} }
} }