diff options
Diffstat (limited to 'src/core/SkScan_Hairline.cpp')
-rw-r--r-- | src/core/SkScan_Hairline.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp index 9be2b8fd12..083dc0df5f 100644 --- a/src/core/SkScan_Hairline.cpp +++ b/src/core/SkScan_Hairline.cpp @@ -538,12 +538,10 @@ void hair_path(const SkPath& path, const SkRasterClip& rclip, SkBlitter* blitter if (SkPaint::kButt_Cap != capStyle) { prevVerb = SkPath::kDone_Verb; } - bool firstPtSet = false; while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { switch (verb) { case SkPath::kMove_Verb: firstPt = lastPt = pts[0]; - firstPtSet = false; break; case SkPath::kLine_Verb: if (SkPaint::kButt_Cap != capStyle) { @@ -594,10 +592,6 @@ void hair_path(const SkPath& path, const SkRasterClip& rclip, SkBlitter* blitter case SkPath::kDone_Verb: break; } - if (!firstPtSet && SkPath::kLine_Verb <= verb && verb <= SkPath::kCubic_Verb) { - firstPt = lastPt = pts[0]; - firstPtSet = true; - } if (SkPaint::kButt_Cap != capStyle) { prevVerb = verb; } |