| Index: src/pathops/SkPathOpsTypes.h
|
| diff --git a/src/pathops/SkPathOpsTypes.h b/src/pathops/SkPathOpsTypes.h
|
| index a780a88c6de48f773c5ccbcc945d0626dca0d7b2..13ebfee84d0ad15cab547741f98c5eff5a2ae500 100644
|
| --- a/src/pathops/SkPathOpsTypes.h
|
| +++ b/src/pathops/SkPathOpsTypes.h
|
| @@ -31,6 +31,7 @@ public:
|
| SkOpGlobalState(SkOpCoincidence* coincidence, SkOpContourHead* head)
|
| : fCoincidence(coincidence)
|
| , fContourHead(head)
|
| + , fNested(0)
|
| , fWindingFailed(false)
|
| , fAngleCoincidence(false)
|
| , fPhase(kIntersecting)
|
| @@ -55,6 +56,14 @@ public:
|
| return fAngleCoincidence;
|
| }
|
|
|
| + void bumpNested() {
|
| + ++fNested;
|
| + }
|
| +
|
| + void clearNested() {
|
| + fNested = 0;
|
| + }
|
| +
|
| SkOpCoincidence* coincidence() {
|
| return fCoincidence;
|
| }
|
| @@ -69,7 +78,13 @@ public:
|
| const class SkOpPtT* debugPtT(int id) const;
|
| const class SkOpSegment* debugSegment(int id) const;
|
| const class SkOpSpanBase* debugSpan(int id) const;
|
| +#endif
|
| +
|
| + int nested() const {
|
| + return fNested;
|
| + }
|
|
|
| +#ifdef SK_DEBUG
|
| int nextAngleID() {
|
| return ++fAngleID;
|
| }
|
| @@ -119,6 +134,7 @@ public:
|
| private:
|
| SkOpCoincidence* fCoincidence;
|
| SkOpContourHead* fContourHead;
|
| + int fNested;
|
| bool fWindingFailed;
|
| bool fAngleCoincidence;
|
| Phase fPhase;
|
|
|