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

Unified Diff: src/core/SkScan_Hairline.cpp

Issue 2189583003: align cap hairline first point Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try a less intrusive change Created 4 years, 3 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 083dc0df5f8d93a21be95b5ec58c6cb52c63af9f..8a4a9f8379e46001de1ffd3969263f2458b2257b 100644
--- a/src/core/SkScan_Hairline.cpp
+++ b/src/core/SkScan_Hairline.cpp
@@ -583,7 +583,7 @@ void hair_path(const SkPath& path, const SkRasterClip& rclip, SkBlitter* blitter
case SkPath::kClose_Verb:
pts[0] = lastPt;
pts[1] = firstPt;
- if (SkPaint::kButt_Cap != capStyle && prevVerb == SkPath::kMove_Verb) {
+ if (SkPaint::kButt_Cap != capStyle) {
// cap moveTo/close to match svg expectations for degenerate segments
extend_pts<capStyle>(prevVerb, iter.peek(), pts, 2);
}
« 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