Index: src/core/SkStroke.cpp |
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp |
index 1689f9730b008716e2217fb756953d2b48ede1b4..58f3ab503bc9c76b5013ec65e9a4a00f62ba9ed7 100644 |
--- a/src/core/SkStroke.cpp |
+++ b/src/core/SkStroke.cpp |
@@ -619,6 +619,7 @@ void SkPathStroker::conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar wei |
SkPoint reduction; |
ReductionType reductionType = CheckConicLinear(conic, &reduction); |
if (kPoint_ReductionType == reductionType) { |
+ this->lineTo(pt2); |
reed1
2015/09/03 19:07:27
Do we add a lineTo to trigger some follow-on heuri
caryclark
2015/09/03 19:37:57
Added comment (done)
|
return; |
} |
if (kLine_ReductionType == reductionType) { |
@@ -653,6 +654,7 @@ void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) { |
SkPoint reduction; |
ReductionType reductionType = CheckQuadLinear(quad, &reduction); |
if (kPoint_ReductionType == reductionType) { |
+ this->lineTo(pt2); |
return; |
} |
if (kLine_ReductionType == reductionType) { |
@@ -1168,6 +1170,7 @@ void SkPathStroker::cubicTo(const SkPoint& pt1, const SkPoint& pt2, |
const SkPoint* tangentPt; |
ReductionType reductionType = CheckCubicLinear(cubic, reduction, &tangentPt); |
if (kPoint_ReductionType == reductionType) { |
+ this->lineTo(pt3); |
return; |
} |
if (kLine_ReductionType == reductionType) { |