diff options
author | reed <reed@google.com> | 2016-04-11 07:46:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-11 07:46:38 -0700 |
commit | 6dc14aab5ea6be87b5b10f17a19737f586708768 (patch) | |
tree | 37179e599a743c500720432fb346efbb933d7ee3 /gm/dashing.cpp | |
parent | e6277de4ebb1b00a15f8f3c7cd9d6027c6b021fe (diff) |
adjust gm bounds for better content fit
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1876753003
TBR=djsollen
Review URL: https://codereview.chromium.org/1876753003
Diffstat (limited to 'gm/dashing.cpp')
-rw-r--r-- | gm/dashing.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gm/dashing.cpp b/gm/dashing.cpp index 95fc15a9fc..82e6eb35bf 100644 --- a/gm/dashing.cpp +++ b/gm/dashing.cpp @@ -476,7 +476,7 @@ private: bool fDoAA; }; -DEF_SIMPLE_GM(longpathdash, canvas, 512, 512) { +DEF_SIMPLE_GM(longpathdash, canvas, 612, 612) { SkPath lines; for (int x = 32; x < 256; x += 16) { for (SkScalar a = 0; a < 3.141592f * 2; a += 0.03141592f) { @@ -499,6 +499,8 @@ DEF_SIMPLE_GM(longpathdash, canvas, 512, 512) { p.setStrokeWidth(1); const SkScalar intervals[] = { 1, 1 }; p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); + + canvas->translate(50, 50); canvas->drawPath(lines, p); } |