Index: tests/PathOpsTSectDebug.h |
diff --git a/tests/PathOpsTSectDebug.h b/tests/PathOpsTSectDebug.h |
index 9db904d06bef6df7c66e2f4abe69c17456acdd3b..68ef4b7db187be554ec2bf44f70d4f2ce4fd67b1 100644 |
--- a/tests/PathOpsTSectDebug.h |
+++ b/tests/PathOpsTSectDebug.h |
@@ -6,6 +6,14 @@ |
*/ |
#include "SkPathOpsTSect.h" |
+ |
+template<typename TCurve, typename OppCurve> |
+char SkTCoincident<TCurve, OppCurve>::dumpIsCoincidentStr() const { |
+ if (!!fCoincident != fCoincident) { |
+ return '?'; |
+ } |
+ return fCoincident ? '*' : 0; |
+} |
template<typename TCurve, typename OppCurve> |
void SkTCoincident<TCurve, OppCurve>::dump() const { |
@@ -201,11 +209,13 @@ |
template<typename TCurve, typename OppCurve> |
void SkTSpan<TCurve, OppCurve>::dumpID() const { |
- if (fCoinStart.isCoincident()) { |
- SkDebugf("%c", '*'); |
+ char cS = fCoinStart.dumpIsCoincidentStr(); |
+ if (cS) { |
+ SkDebugf("%c", cS); |
} |
SkDebugf("%d", debugID()); |
- if (fCoinEnd.isCoincident()) { |
- SkDebugf("%c", '*'); |
- } |
-} |
+ char cE = fCoinEnd.dumpIsCoincidentStr(); |
+ if (cE) { |
+ SkDebugf("%c", cE); |
+ } |
+} |