Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: src/core/SkScan_Hairline.cpp

Issue 2188483007: Revert of align cap hairline first point (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698