| Index: tests/PathOpsDebug.cpp
|
| diff --git a/tests/PathOpsDebug.cpp b/tests/PathOpsDebug.cpp
|
| index 95f06e5b7def11c2ec505bd9cf865624fae411b3..507d86592687184ed363025d5f4fce3db39a958c 100755
|
| --- a/tests/PathOpsDebug.cpp
|
| +++ b/tests/PathOpsDebug.cpp
|
| @@ -13,6 +13,8 @@
|
| #include "SkOpSegment.h"
|
| #include "SkString.h"
|
|
|
| +extern bool FLAGS_runFail;
|
| +
|
| inline void DebugDumpDouble(double x) {
|
| if (x == floor(x)) {
|
| SkDebugf("%.0f", x);
|
| @@ -238,6 +240,26 @@ const SkOpSpanBase* SkPathOpsDebug::DebugContourSpan(SkOpContour* contour, int i
|
| return contour->debugSpan(id);
|
| }
|
|
|
| +const SkOpAngle* SkPathOpsDebug::DebugCoincidenceAngle(SkOpCoincidence* coin, int id) {
|
| + return coin->debugAngle(id);
|
| +}
|
| +
|
| +SkOpContour* SkPathOpsDebug::DebugCoincidenceContour(SkOpCoincidence* coin, int id) {
|
| + return coin->debugContour(id);
|
| +}
|
| +
|
| +const SkOpPtT* SkPathOpsDebug::DebugCoincidencePtT(SkOpCoincidence* coin, int id) {
|
| + return coin->debugPtT(id);
|
| +}
|
| +
|
| +const SkOpSegment* SkPathOpsDebug::DebugCoincidenceSegment(SkOpCoincidence* coin, int id) {
|
| + return coin->debugSegment(id);
|
| +}
|
| +
|
| +const SkOpSpanBase* SkPathOpsDebug::DebugCoincidenceSpan(SkOpCoincidence* coin, int id) {
|
| + return coin->debugSpan(id);
|
| +}
|
| +
|
| const SkOpAngle* SkPathOpsDebug::DebugPtTAngle(const SkOpPtT* ptT, int id) {
|
| return ptT->debugAngle(id);
|
| }
|
| @@ -1119,6 +1141,15 @@ void SkOpCoincidence::dump() const {
|
| span->dump();
|
| span = span->fNext;
|
| }
|
| + if (!fTop) {
|
| + return;
|
| + }
|
| + SkDebugf("top:\n");
|
| + span = fTop;
|
| + while (span) {
|
| + span->dump();
|
| + span = span->fNext;
|
| + }
|
| }
|
|
|
| void SkOpContour::dump() const {
|
|
|