Do not quickReject until virtual drawPatch
TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2358873003 Review-Url: https://codereview.chromium.org/2358873003
This commit is contained in:
parent
e7bb5b2266
commit
9340c2685c
@ -2908,6 +2908,11 @@ void SkCanvas::drawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
||||
return;
|
||||
}
|
||||
|
||||
this->onDrawPatch(cubics, colors, texCoords, xmode, paint);
|
||||
}
|
||||
|
||||
void SkCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
||||
const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint) {
|
||||
// Since a patch is always within the convex hull of the control points, we discard it when its
|
||||
// bounding rectangle is completely outside the current clip.
|
||||
SkRect bounds;
|
||||
@ -2916,12 +2921,6 @@ void SkCanvas::drawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
||||
return;
|
||||
}
|
||||
|
||||
this->onDrawPatch(cubics, colors, texCoords, xmode, paint);
|
||||
}
|
||||
|
||||
void SkCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
||||
const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint) {
|
||||
|
||||
LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type, nullptr)
|
||||
|
||||
while (iter.next()) {
|
||||
|
Loading…
Reference in New Issue
Block a user