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

Commit c421f748 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

Change-Id: I7b457216863872d7287e777097e04f99d2f18326
parents 968e3fa0 190fe086
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();
}