Index: src/pathops/SkOpContour.cpp |
diff --git a/src/pathops/SkOpContour.cpp b/src/pathops/SkOpContour.cpp |
index 874de381b199df57a957276a56cb0d2bc0a52764..db805a214f0315fed57daf73d0f5f98ee042f413 100644 |
--- a/src/pathops/SkOpContour.cpp |
+++ b/src/pathops/SkOpContour.cpp |
@@ -148,6 +148,16 @@ bool SkOpContour::addPartialCoincident(int index, SkOpContour* other, int otherI |
return true; |
} |
+bool SkOpContour::calcAngles() { |
+ int segmentCount = fSegments.count(); |
+ for (int test = 0; test < segmentCount; ++test) { |
+ if (!fSegments[test].calcAngles()) { |
+ return false; |
+ } |
+ } |
+ return true; |
+} |
+ |
void SkOpContour::calcCoincidentWinding() { |
int count = fCoincidences.count(); |
#if DEBUG_CONCIDENT |
@@ -277,6 +287,13 @@ void SkOpContour::calcCommonCoincidentWinding(const SkCoincidence& coincidence) |
#endif |
} |
+void SkOpContour::sortAngles() { |
+ int segmentCount = fSegments.count(); |
+ for (int test = 0; test < segmentCount; ++test) { |
+ fSegments[test].sortAngles(); |
+ } |
+} |
+ |
void SkOpContour::sortSegments() { |
int segmentCount = fSegments.count(); |
fSortedSegments.push_back_n(segmentCount); |