aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/SkCanvas.cpp2
-rw-r--r--src/core/SkStroke.cpp12
2 files changed, 1 insertions, 13 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 3a289566cb..7043ec3bc3 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -2124,8 +2124,8 @@ void SkCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) {
if (r.width() <= 0 && r.height() <= 0) {
if (path.isInverseFillType()) {
this->internalDrawPaint(paint);
- return;
}
+ return;
}
LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type, bounds)
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp
index 522a000712..1689f9730b 100644
--- a/src/core/SkStroke.cpp
+++ b/src/core/SkStroke.cpp
@@ -619,10 +619,6 @@ void SkPathStroker::conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar wei
SkPoint reduction;
ReductionType reductionType = CheckConicLinear(conic, &reduction);
if (kPoint_ReductionType == reductionType) {
- /* If the stroke consists of a moveTo followed by a degenerate curve, treat it
- as if it were followed by a zero-length line. Lines without length
- can have square and round end caps. */
- this->lineTo(pt2);
return;
}
if (kLine_ReductionType == reductionType) {
@@ -657,10 +653,6 @@ void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) {
SkPoint reduction;
ReductionType reductionType = CheckQuadLinear(quad, &reduction);
if (kPoint_ReductionType == reductionType) {
- /* If the stroke consists of a moveTo followed by a degenerate curve, treat it
- as if it were followed by a zero-length line. Lines without length
- can have square and round end caps. */
- this->lineTo(pt2);
return;
}
if (kLine_ReductionType == reductionType) {
@@ -1176,10 +1168,6 @@ void SkPathStroker::cubicTo(const SkPoint& pt1, const SkPoint& pt2,
const SkPoint* tangentPt;
ReductionType reductionType = CheckCubicLinear(cubic, reduction, &tangentPt);
if (kPoint_ReductionType == reductionType) {
- /* If the stroke consists of a moveTo followed by a degenerate curve, treat it
- as if it were followed by a zero-length line. Lines without length
- can have square and round end caps. */
- this->lineTo(pt3);
return;
}
if (kLine_ReductionType == reductionType) {