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

Commit 0bbc82cb authored by Derek Sollenberger's avatar Derek Sollenberger Committed by android-build-merger
Browse files

Merge "Remove round rect clipping optimization." into oc-dev am: 190fe086

am: c421f748

Change-Id: I6fe0b0eabb2ad17a7dd6df8c695029f36f8b3cd6
parents fdba38b0 c421f748
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -390,14 +390,8 @@ bool SkiaCanvas::clipRect(float left, float top, float right, float bottom, SkCl
}

bool SkiaCanvas::clipPath(const SkPath* path, SkClipOp op) {
    SkRRect roundRect;
    if (path->isRRect(&roundRect)) {
        this->recordClip(roundRect, op);
        mCanvas->clipRRect(roundRect, op);
    } else {
    this->recordClip(*path, op);
    mCanvas->clipPath(*path, op);
    }
    return !mCanvas->isClipEmpty();
}