Index: src/pathops/SkOpSpan.cpp |
diff --git a/src/pathops/SkOpSpan.cpp b/src/pathops/SkOpSpan.cpp |
index 9c9e07f985a144f9b232504b116fd9e93c5ad758..e89ec3e204844642b1381c0c353b5c88c5490731 100755 |
--- a/src/pathops/SkOpSpan.cpp |
+++ b/src/pathops/SkOpSpan.cpp |
@@ -249,6 +249,16 @@ tryNextRemainder: |
fSpanAdds += span->fSpanAdds; |
} |
+int SkOpSpan::computeWindSum() { |
+ SkOpGlobalState* globals = this->globalState(); |
+ SkOpContour* contourHead = globals->contourHead(); |
+ int windTry = 0; |
+ while (!this->sortableTop(contourHead) && ++windTry < SkOpGlobalState::kMaxWindingTries) { |
+ ; |
+ } |
+ return this->windSum(); |
+} |
+ |
bool SkOpSpan::containsCoincidence(const SkOpSegment* segment) const { |
SkASSERT(this->segment() != segment); |
const SkOpSpan* next = fCoincident; |