Index: src/utils/SkDumpCanvas.cpp |
diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp |
index b12928fbbb9e911c6d33d21e7d6b092bf2d4274e..b26e3878ef9358783610632b33e312bfc490818d 100644 |
--- a/src/utils/SkDumpCanvas.cpp |
+++ b/src/utils/SkDumpCanvas.cpp |
@@ -442,6 +442,15 @@ void SkDumpCanvas::drawVertices(VertexMode vmode, int vertexCount, |
SkScalarToFloat(vertices[0].fY)); |
} |
+void SkDumpCanvas::drawPatch(const SkPatch& patch, const SkPaint& paint) { |
+ const SkPoint* points = patch.getControlPoints(); |
+ const SkColor* color = patch.getColors(); |
+ this->dump(kDrawPatch_Verb, &paint, "drawPatch(Vertices{[%f, %f], [%f, %f], [%f, %f], [%f, %f]}\ |
egdaniel
2014/08/04 20:45:38
I would say you should be fine with just the corne
dandov
2014/08/04 21:47:54
Done.
|
+ | Colors{[0x%x], [0x%x], [0x%x], [0x%x]})", |
+ points[0].fX, points[0].fY, points[1].fX, points[1].fY, points[2].fX, points[2].fY, |
+ points[3].fX, points[3].fY, color[0], color[1], color[2], color[3]); |
+} |
+ |
void SkDumpCanvas::drawData(const void* data, size_t length) { |
// this->dump(kDrawData_Verb, NULL, "drawData(%d)", length); |
this->dump(kDrawData_Verb, NULL, "drawData(%d) %.*s", length, |