aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkPathWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathops/SkPathWriter.cpp')
-rw-r--r--src/pathops/SkPathWriter.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pathops/SkPathWriter.cpp b/src/pathops/SkPathWriter.cpp
index 7291002593..950f8fbce5 100644
--- a/src/pathops/SkPathWriter.cpp
+++ b/src/pathops/SkPathWriter.cpp
@@ -301,6 +301,22 @@ void SkPathWriter::assemble() {
#endif
do {
const SkPath& contour = fPartials[rIndex];
+ if (!first) {
+ SkPoint prior, next;
+ SkAssertResult(fPathPtr->getLastPt(&prior));
+ if (forward) {
+ next = contour.getPoint(0);
+ } else {
+ SkAssertResult(contour.getLastPt(&next));
+ }
+ if (prior != next) {
+ /* TODO: if there is a gap between open path written so far and path to come,
+ connect by following segments from one to the other, rather than introducing
+ a diagonal to connect the two.
+ */
+ SkDebugf("");
+ }
+ }
if (forward) {
fPathPtr->addPath(contour,
first ? SkPath::kAppend_AddPathMode : SkPath::kExtend_AddPathMode);