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

Commit 190fe086 authored by Derek Sollenberger's avatar Derek Sollenberger Committed by Android (Google) Code Review
Browse files

Merge "Remove round rect clipping optimization." into oc-dev

parents 2b499e4e f7d98f43
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();
}