diff options
author | Brian Salomon <bsalomon@google.com> | 2017-02-02 20:59:09 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-03 02:29:08 +0000 |
commit | 8c88a371b47dd650a9052ffaf421c5cf897edd26 (patch) | |
tree | a313493bc6dc52afac0f37a41d5d5cb7ebc27b89 /gm | |
parent | 1db215a8efb444b62194a945b3d634463f994a06 (diff) |
fix up shadow_utils gm dimensions
Change-Id: I5204296871404065b4d55d53922b7cf05ca5a50f
Reviewed-on: https://skia-review.googlesource.com/7990
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gm')
-rw-r--r-- | gm/shadowutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/shadowutils.cpp b/gm/shadowutils.cpp index 9fe1405cf4..96554f10e7 100644 --- a/gm/shadowutils.cpp +++ b/gm/shadowutils.cpp @@ -18,7 +18,7 @@ void draw_shadow(SkCanvas* canvas, const SkPath& path, int height, SkColor color color, flags); } -static constexpr int kW = 500; +static constexpr int kW = 700; static constexpr int kH = 800; DEF_SIMPLE_GM(shadow_utils, canvas, kW, kH) { @@ -32,7 +32,7 @@ DEF_SIMPLE_GM(shadow_utils, canvas, kW, kH) { paths.push_back().cubicTo(100, 50, 20, 100, 0, 0); static constexpr SkScalar kPad = 15.f; - static constexpr SkPoint3 kLightPos = {kW / 2, kH / 2, 500}; + static constexpr SkPoint3 kLightPos = {250, 400, 500}; static constexpr SkScalar kLightR = 100.f; static constexpr SkScalar kHeight = 50.f; canvas->translate(3 * kPad, 3 * kPad); |