Index: src/pathops/SkPathOpsQuad.cpp |
diff --git a/src/pathops/SkPathOpsQuad.cpp b/src/pathops/SkPathOpsQuad.cpp |
index 7d9ff52aa28c824b2192a28cd85ae5c8423bb18b..1bd7796d968527b3e3e04cef1b1890cb7d99d3ef 100644 |
--- a/src/pathops/SkPathOpsQuad.cpp |
+++ b/src/pathops/SkPathOpsQuad.cpp |
@@ -340,3 +340,16 @@ void SkDQuad::SetABC(const double* quad, double* a, double* b, double* c) { |
*a -= *b; // a = A - 2*B + C |
*b -= *c; // b = 2*B - 2*C |
} |
+ |
+#ifdef SK_DEBUG |
+void SkDQuad::dump() { |
+ SkDebugf("{{"); |
+ int index = 0; |
+ do { |
+ fPts[index].dump(); |
+ SkDebugf(", "); |
+ } while (++index < 2); |
+ fPts[index].dump(); |
+ SkDebugf("}}\n"); |
+} |
+#endif |