aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScan_Hairline.cpp
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2016-09-29 06:42:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-29 06:42:52 -0700
commitaa6ef3ebc60e0f70db0e599f4cd34d5be06486c9 (patch)
tree9c13f1aef57bdcd26ae3ed3eb224d77c514ff5e7 /src/core/SkScan_Hairline.cpp
parent6904b19f18006a4130f8a3a19169b2a5e01fe208 (diff)
Add SK_SUPPORT_LEGACY_HAIRLINE_END_CAP to work around dependent test failure.
Diffstat (limited to 'src/core/SkScan_Hairline.cpp')
-rw-r--r--src/core/SkScan_Hairline.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp
index ce3fe2b604..cc57bb6d63 100644
--- a/src/core/SkScan_Hairline.cpp
+++ b/src/core/SkScan_Hairline.cpp
@@ -593,10 +593,12 @@ void hair_path(const SkPath& path, const SkRasterClip& rclip, SkBlitter* blitter
break;
}
if (SkPaint::kButt_Cap != capStyle) {
+#if !defined(SK_SUPPORT_LEGACY_HAIRLINE_END_CAP)
if (prevVerb == SkPath::kMove_Verb &&
verb >= SkPath::kLine_Verb && verb <= SkPath::kCubic_Verb) {
firstPt = pts[0]; // the curve moved the initial point, so close to it instead
}
+#endif
prevVerb = verb;
}
}