Index: src/core/SkScan_Hairline.cpp |
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp |
index 9be2b8fd123c815296c3ea4153829873e6d288d1..083dc0df5f8d93a21be95b5ec58c6cb52c63af9f 100644 |
--- a/src/core/SkScan_Hairline.cpp |
+++ b/src/core/SkScan_Hairline.cpp |
@@ -538,12 +538,10 @@ |
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 @@ |
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; |
} |