Index: src/core/SkBBoxRecord.cpp |
diff --git a/src/core/SkBBoxRecord.cpp b/src/core/SkBBoxRecord.cpp |
index 448e8f65f48adb993949e55de6fcaa0f6ddc74e1..802eb669bf3effeca9de693b8c14ad9197c74a40 100644 |
--- a/src/core/SkBBoxRecord.cpp |
+++ b/src/core/SkBBoxRecord.cpp |
@@ -284,6 +284,15 @@ void SkBBoxRecord::drawVertices(VertexMode mode, int vertexCount, |
} |
} |
+void SkBBoxRecord::drawPatch(const SkPatch& patch, const SkPaint& paint) { |
+ const SkPoint* points = patch.getControlPoints(); |
+ SkRect bbox; |
+ bbox.set(points, SkPatch::kNumCtrlPts); |
+ if (this->transformBounds(bbox, &paint)) { |
+ INHERITED::drawPatch(patch, paint); |
+ } |
+} |
+ |
void SkBBoxRecord::onDrawPicture(const SkPicture* picture) { |
if (picture->width() > 0 && picture->height() > 0 && |
this->transformBounds(SkRect::MakeWH(picture->width(), picture->height()), NULL)) { |