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

Commit 917de857 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "switch to new SkPathEffect factories for Compose and Sum"

parents a444636d 97fa2299
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -20,7 +20,7 @@ public:
                                     jlong outerHandle, jlong innerHandle) {
                                     jlong outerHandle, jlong innerHandle) {
        SkPathEffect* outer = reinterpret_cast<SkPathEffect*>(outerHandle);
        SkPathEffect* outer = reinterpret_cast<SkPathEffect*>(outerHandle);
        SkPathEffect* inner = reinterpret_cast<SkPathEffect*>(innerHandle);
        SkPathEffect* inner = reinterpret_cast<SkPathEffect*>(innerHandle);
        SkPathEffect* effect = SkComposePathEffect::Make(sk_ref_sp(outer),
        SkPathEffect* effect = SkPathEffect::MakeCompose(sk_ref_sp(outer),
                sk_ref_sp(inner)).release();
                sk_ref_sp(inner)).release();
        return reinterpret_cast<jlong>(effect);
        return reinterpret_cast<jlong>(effect);
    }
    }
@@ -29,7 +29,7 @@ public:
                                 jlong firstHandle, jlong secondHandle) {
                                 jlong firstHandle, jlong secondHandle) {
        SkPathEffect* first = reinterpret_cast<SkPathEffect*>(firstHandle);
        SkPathEffect* first = reinterpret_cast<SkPathEffect*>(firstHandle);
        SkPathEffect* second = reinterpret_cast<SkPathEffect*>(secondHandle);
        SkPathEffect* second = reinterpret_cast<SkPathEffect*>(secondHandle);
        SkPathEffect* effect = SkSumPathEffect::Make(sk_ref_sp(first),
        SkPathEffect* effect = SkPathEffect::MakeSum(sk_ref_sp(first),
                sk_ref_sp(second)).release();
                sk_ref_sp(second)).release();
        return reinterpret_cast<jlong>(effect);
        return reinterpret_cast<jlong>(effect);
    }
    }