diff options
author | benjaminwagner <benjaminwagner@google.com> | 2016-09-29 06:42:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-29 06:42:52 -0700 |
commit | aa6ef3ebc60e0f70db0e599f4cd34d5be06486c9 (patch) | |
tree | 9c13f1aef57bdcd26ae3ed3eb224d77c514ff5e7 /src/core/SkScan_Hairline.cpp | |
parent | 6904b19f18006a4130f8a3a19169b2a5e01fe208 (diff) |
Add SK_SUPPORT_LEGACY_HAIRLINE_END_CAP to work around dependent test failure.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2379843002
Review-Url: https://codereview.chromium.org/2379843002
Diffstat (limited to 'src/core/SkScan_Hairline.cpp')
-rw-r--r-- | src/core/SkScan_Hairline.cpp | 2 |
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; } } |