Index: src/pathops/SkOpContour.h |
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h |
index 84f0eb10dd6331c7ef7645e3b6006b2714d8791b..456e6c0068bc2c7e1ffec342fa680c5b3337c6ef 100644 |
--- a/src/pathops/SkOpContour.h |
+++ b/src/pathops/SkOpContour.h |
@@ -90,6 +90,20 @@ public: |
void calcCoincidentWinding(); |
+ void checkEnds() { |
+ if (!fContainsCurves) { |
+ return; |
+ } |
+ int segmentCount = fSegments.count(); |
+ for (int sIndex = 0; sIndex < segmentCount; ++sIndex) { |
+ SkOpSegment* segment = &fSegments[sIndex]; |
+ if (segment->verb() == SkPath::kLine_Verb) { |
+ continue; |
+ } |
+ fSegments[sIndex].checkEnds(); |
+ } |
+ } |
+ |
void complete() { |
setBounds(); |
fContainsIntercepts = false; |