diff options
author | egdaniel <egdaniel@google.com> | 2015-10-05 08:11:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-05 08:11:49 -0700 |
commit | c00389e45a54e699ac20ff77a81e9de54c4e6ea4 (patch) | |
tree | 99f0e9a9000f5cc8dc8ff496e9f4a9d2fc1bf410 /gm/dashing.cpp | |
parent | 6f6264fbbc15d4184c81ca94949f2d4f3efdc2c8 (diff) |
Fix gpu dashing for case where all intervals are 0.
BUG=skia:4409
Review URL: https://codereview.chromium.org/1381803005
Diffstat (limited to 'gm/dashing.cpp')
-rw-r--r-- | gm/dashing.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gm/dashing.cpp b/gm/dashing.cpp index 15e4bc278b..300eb776f5 100644 --- a/gm/dashing.cpp +++ b/gm/dashing.cpp @@ -54,7 +54,7 @@ protected: return SkString("dashing"); } - SkISize onISize() { return SkISize::Make(640, 300); } + SkISize onISize() { return SkISize::Make(640, 340); } virtual void onDraw(SkCanvas* canvas) { static const struct { @@ -90,6 +90,10 @@ protected: show_giant_dash(canvas); canvas->translate(0, SkIntToScalar(20)); show_zero_len_dash(canvas); + canvas->translate(0, SkIntToScalar(20)); + // Draw 0 on, 0 off dashed line + paint.setStrokeWidth(SkIntToScalar(8)); + drawline(canvas, 0, 0, paint); } }; |