diff options
author | Cary Clark <caryclark@google.com> | 2016-10-04 10:01:04 -0400 |
---|---|---|
committer | Cary Clark <caryclark@google.com> | 2016-10-04 14:26:00 +0000 |
commit | ab87d7abf1df007c90bef2e916294ca325d81c81 (patch) | |
tree | c28fc9383e6886e5f8411ad3b50e90644d698f30 /src/pathops/SkOpSegment.h | |
parent | 1818701746e4ea76631afd6934d6257e2b3d781b (diff) |
coin debugging runs all tests in extended
This extends path ops concidence debugging
to find unused algorithms and determine the extent
of loops.
This verifies that all 140M tests run without error
in release and debug.
TBR=reed@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2391733002
patch from issue 2391733002 at patchset 1 (http://crrev.com/2391733002#ps1)
Change-Id: I02ca29764405c5ac3e7ca3b2621fba28dbaaffc2
Reviewed-on: https://skia-review.googlesource.com/2923
Reviewed-by: Cary Clark <caryclark@google.com>
Diffstat (limited to 'src/pathops/SkOpSegment.h')
-rw-r--r-- | src/pathops/SkOpSegment.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/pathops/SkOpSegment.h b/src/pathops/SkOpSegment.h index feae83852c..a04f74111f 100644 --- a/src/pathops/SkOpSegment.h +++ b/src/pathops/SkOpSegment.h @@ -129,17 +129,17 @@ public: } void debugAddAngle(double startT, double endT); -#if DEBUG_COINCIDENCE_VERBOSE - const SkOpPtT* debugAddT(double t, const char* id, SkPathOpsDebug::GlitchLog* ) const; +#if DEBUG_COIN + const SkOpPtT* debugAddT(double t, SkPathOpsDebug::GlitchLog* ) const; #endif const SkOpAngle* debugAngle(int id) const; #if DEBUG_ANGLE void debugCheckAngleCoin() const; #endif -#if DEBUG_COINCIDENCE_VERBOSE - void debugCheckHealth(const char* id, SkPathOpsDebug::GlitchLog* ) const; - void debugClearAll(const char* id, SkPathOpsDebug::GlitchLog* glitches) const; - void debugClearOne(const SkOpSpan* span, const char* id, SkPathOpsDebug::GlitchLog* glitches) const; +#if DEBUG_COIN + void debugCheckHealth(SkPathOpsDebug::GlitchLog* ) const; + void debugClearAll(SkPathOpsDebug::GlitchLog* glitches) const; + void debugClearOne(const SkOpSpan* span, SkPathOpsDebug::GlitchLog* glitches) const; #endif const SkOpCoincidence* debugCoincidence() const; SkOpContour* debugContour(int id) const; @@ -149,10 +149,10 @@ public: } SkOpAngle* debugLastAngle(); -#if DEBUG_COINCIDENCE_VERBOSE - void debugMissingCoincidence(const char* id, SkPathOpsDebug::GlitchLog* glitches) const; - void debugMoveMultiples(const char* id, SkPathOpsDebug::GlitchLog* glitches) const; - void debugMoveNearby(const char* id, SkPathOpsDebug::GlitchLog* glitches) const; +#if DEBUG_COIN + void debugMissingCoincidence(SkPathOpsDebug::GlitchLog* glitches) const; + void debugMoveMultiples(SkPathOpsDebug::GlitchLog* glitches) const; + void debugMoveNearby(SkPathOpsDebug::GlitchLog* glitches) const; #endif const SkOpPtT* debugPtT(int id) const; void debugReset(); @@ -174,7 +174,7 @@ public: void debugSetCoinT(int, SkScalar ) const; #endif -#if DEBUG_COINCIDENCE +#if DEBUG_COIN static void DebugClearVisited(const SkOpSpanBase* span); bool debugVisited() const { @@ -341,7 +341,7 @@ public: void rayCheck(const SkOpRayHit& base, SkOpRayDir dir, SkOpRayHit** hits, SkChunkAlloc*); -#if DEBUG_COINCIDENCE +#if DEBUG_COIN void resetDebugVisited() const { fDebugVisited = false; } @@ -447,7 +447,7 @@ private: int fDoneCount; // number of processed spans (zero initially) SkPath::Verb fVerb; bool fVisited; // used by missing coincidence check -#if DEBUG_COINCIDENCE +#if DEBUG_COIN mutable bool fDebugVisited; // used by debug missing coincidence check #endif #if DEBUG_COINCIDENCE_ORDER |