Index: src/pathops/SkOpSegment.cpp |
diff --git a/src/pathops/SkOpSegment.cpp b/src/pathops/SkOpSegment.cpp |
index 8bd0f03518b5593646f15ccedb8f11830cc0e30e..462cff60cf639cc37738ff0732a5b40c48126310 100644 |
--- a/src/pathops/SkOpSegment.cpp |
+++ b/src/pathops/SkOpSegment.cpp |
@@ -852,6 +852,13 @@ bool SkOpSegment::isXor() const { |
return fContour->isXor(); |
} |
+void SkOpSegment::markAllDone() { |
+ SkOpSpan* span = this->head(); |
+ do { |
+ this->markDone(span); |
+ } while ((span = span->next()->upCastable())); |
+} |
+ |
SkOpSpanBase* SkOpSegment::markAndChaseDone(SkOpSpanBase* start, SkOpSpanBase* end) { |
int step = start->step(end); |
SkOpSpan* minSpan = start->starter(end); |