Index: src/pathops/SkPathOpsTypes.h |
diff --git a/src/pathops/SkPathOpsTypes.h b/src/pathops/SkPathOpsTypes.h |
index b336e58855839c5ccb8bb29a7c3b40b06b8a10e3..a6457716340312a1806c2ed576484dcf5f67f21c 100644 |
--- a/src/pathops/SkPathOpsTypes.h |
+++ b/src/pathops/SkPathOpsTypes.h |
@@ -45,6 +45,10 @@ public: |
kMaxWindingTries = 10 |
}; |
+ bool allocatedOpSpan() const { |
+ return fAllocatedOpSpan; |
+ } |
+ |
SkChunkAlloc* allocator() { |
return fAllocator; |
} |
@@ -127,6 +131,14 @@ public: |
Phase phase() const { |
return fPhase; |
} |
+ |
+ void resetAllocatedOpSpan() { |
+ fAllocatedOpSpan = false; |
+ } |
+ |
+ void setAllocatedOpSpan() { |
+ fAllocatedOpSpan = true; |
+ } |
void setAngleCoincidence() { |
fAngleCoincidence = true; |
@@ -159,6 +171,7 @@ private: |
SkOpCoincidence* fCoincidence; |
SkOpContourHead* fContourHead; |
int fNested; |
+ bool fAllocatedOpSpan; |
bool fWindingFailed; |
bool fAngleCoincidence; |
Phase fPhase; |