Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34c495d2 authored by Miao Wang's avatar Miao Wang Committed by Gerrit Code Review
Browse files

Merge "Add Float32 suppor for IntrinsicResize. base part."

parents 5b50cd13 8f3cc458
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ public final class ScriptIntrinsicResize extends ScriptIntrinsic {
    /**
     * Supported elements types are {@link Element#U8}, {@link
     * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4}
     * {@link Element#F32}, {@link Element#F32_2}, {@link
     * Element#F32_3}, {@link Element#F32_4}
     *
     * @param rs The RenderScript context
     *
@@ -52,7 +54,11 @@ public final class ScriptIntrinsicResize extends ScriptIntrinsic {
        if (!e.isCompatible(Element.U8(mRS)) &&
            !e.isCompatible(Element.U8_2(mRS)) &&
            !e.isCompatible(Element.U8_3(mRS)) &&
            !e.isCompatible(Element.U8_4(mRS))) {
            !e.isCompatible(Element.U8_4(mRS)) &&
            !e.isCompatible(Element.F32(mRS)) &&
            !e.isCompatible(Element.F32_2(mRS)) &&
            !e.isCompatible(Element.F32_3(mRS)) &&
            !e.isCompatible(Element.F32_4(mRS))) {
            throw new RSIllegalArgumentException("Unsuported element type.");
        }