| Index: src/pathops/SkPathOpsDebug.cpp
|
| diff --git a/src/pathops/SkPathOpsDebug.cpp b/src/pathops/SkPathOpsDebug.cpp
|
| index 4e4216310f0a5d6a73ccd49005776115ead49dc1..3a5153a263a9cc916d237eb082559bab374e2a0b 100644
|
| --- a/src/pathops/SkPathOpsDebug.cpp
|
| +++ b/src/pathops/SkPathOpsDebug.cpp
|
| @@ -10,12 +10,12 @@
|
|
|
| #if defined SK_DEBUG || !FORCE_RELEASE
|
|
|
| -int SkPathOpsDebug::gMaxWindSum = SK_MaxS32;
|
| -int SkPathOpsDebug::gMaxWindValue = SK_MaxS32;
|
| -
|
| const char* SkPathOpsDebug::kLVerbStr[] = {"", "line", "quad", "cubic"};
|
| +
|
| +#if defined(SK_DEBUG) || !FORCE_RELEASE
|
| int SkPathOpsDebug::gContourID;
|
| int SkPathOpsDebug::gSegmentID;
|
| +#endif
|
|
|
| #if DEBUG_SORT || DEBUG_SWAP_TOP
|
| int SkPathOpsDebug::gSortCountDefault = SK_MaxS32;
|
| @@ -393,6 +393,17 @@ bool SkOpSegment::debugContains(const SkOpAngle* angle) const {
|
| }
|
| #endif
|
|
|
| +#if DEBUG_SWAP_TOP
|
| +int SkOpSegment::debugInflections(int tStart, int tEnd) const {
|
| + if (fVerb != SkPath::kCubic_Verb) {
|
| + return false;
|
| + }
|
| + SkDCubic dst = SkDCubic::SubDivide(fPts, fTs[tStart].fT, fTs[tEnd].fT);
|
| + double inflections[2];
|
| + return dst.findInflections(inflections);
|
| +}
|
| +#endif
|
| +
|
| void SkOpSegment::debugReset() {
|
| fTs.reset();
|
| fAngles.reset();
|
|
|