Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index e53a104c47fa28406f1d440dbcd670365d877a24..c4afcebed698d863a2f939223e65c7c93e171d10 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -2971,6 +2971,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; |
@@ -2979,12 +2984,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()) { |