Index: src/pathops/SkOpSegment.cpp |
diff --git a/src/pathops/SkOpSegment.cpp b/src/pathops/SkOpSegment.cpp |
index fd8ab65acd200f5f534ee01ebfe322dcdb0da23d..fc32643558d3775a7b3020897873ff774591e14e 100644 |
--- a/src/pathops/SkOpSegment.cpp |
+++ b/src/pathops/SkOpSegment.cpp |
@@ -615,6 +615,15 @@ double SkOpSegment::distSq(double t, SkOpAngle* oppAngle) { |
return closestDistSq; |
} |
+void SkOpSegment::findCollapsed() { |
+ if (fHead.contains(&fTail)) { |
+ markAllDone(); |
+ // move start and end to the same point |
+ fHead.alignEnd(0, fHead.pt()); |
+ fTail.setAligned(); |
+ } |
+} |
+ |
/* |
The M and S variable name parts stand for the operators. |
Mi stands for Minuend (see wiki subtraction, analogous to difference) |