Index: src/pathops/SkPathOpsDebug.cpp |
diff --git a/src/pathops/SkPathOpsDebug.cpp b/src/pathops/SkPathOpsDebug.cpp |
index 61bca42fcf31aa6892c7639181c3c72aeb7b388c..36f459935d32a8e383658d1f9669d9609a3bb3ee 100644 |
--- a/src/pathops/SkPathOpsDebug.cpp |
+++ b/src/pathops/SkPathOpsDebug.cpp |
@@ -115,6 +115,10 @@ static const char* gOpStrs[] = { |
"kReverseDifference_SkPathOp", |
}; |
+const char* SkPathOpsDebug::OpStr(SkPathOp op) { |
+ return gOpStrs[op]; |
+} |
+ |
static void show_op(SkPathOp op, const char* pathOne, const char* pathTwo) { |
SkDebugf(" testPathOp(reporter, %s, %s, %s, filename);\n", pathOne, pathTwo, gOpStrs[op]); |
SkDebugf("}\n"); |
@@ -293,7 +297,7 @@ SkString SkOpAngle::debugPart() const { |
} |
#endif |
-#if DEBUG_SORT |
+#if DEBUG_SORT || DEBUG_SWAP_TOP |
void SkOpAngle::debugLoop() const { |
const SkOpAngle* first = this; |
const SkOpAngle* next = this; |