diff options
author | Greg Daniel <egdaniel@google.com> | 2017-06-30 10:36:38 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-30 15:21:10 +0000 |
commit | 95581bbba1d696f14de45e00dd0c09119377027f (patch) | |
tree | e1086cdda4b330064a920f96c65db0cf5e02799d /gm/dashing.cpp | |
parent | d150e84352531f6422b792747cdc20874f80f0aa (diff) |
Allow caps on hairlines for gpu dashed lines
Bug: skia:
Change-Id: Ie3b61e0a308f7cbec65166f2f2ac4fe3cc5d16d0
Reviewed-on: https://skia-review.googlesource.com/21364
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'gm/dashing.cpp')
-rw-r--r-- | gm/dashing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/dashing.cpp b/gm/dashing.cpp index ff6e700b02..68fe7f168f 100644 --- a/gm/dashing.cpp +++ b/gm/dashing.cpp @@ -348,7 +348,7 @@ protected: paint.setStyle(SkPaint::kStroke_Style); canvas->translate(SkIntToScalar(20), SkIntToScalar(20)); - canvas->translate(0, SK_ScalarHalf); + canvas->translate(SK_ScalarHalf, SK_ScalarHalf); for (int width = 0; width <= 2; ++width) { for (size_t data = 0; data < SK_ARRAY_COUNT(gData); ++data) { |