From 8c88a371b47dd650a9052ffaf421c5cf897edd26 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Thu, 2 Feb 2017 20:59:09 -0500 Subject: fix up shadow_utils gm dimensions Change-Id: I5204296871404065b4d55d53922b7cf05ca5a50f Reviewed-on: https://skia-review.googlesource.com/7990 Reviewed-by: Brian Salomon Commit-Queue: Brian Salomon --- gm/shadowutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gm/shadowutils.cpp') 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); -- cgit v1.2.3