Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 3320d18fc039749ec054ab380595a84c47468c0a..757e7110196ce87f68f624450ed07f9402c19f3d 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -2258,7 +2258,7 @@ void SkCanvas::drawPatch(const SkPatch& patch, 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; |
- bounds.set(patch.getControlPoints(), 12); |
+ bounds.set(patch.getControlPoints(), SkPatch::kNumCtrlPts); |
if (this->quickReject(bounds)) { |
return; |
} |