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:
msarett 2016-09-22 05:20:21 -07:00 committed by Commit bot
parent e7bb5b2266
commit 9340c2685c

View File

@ -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()) {