fix up shadow_utils gm dimensions
authorBrian Salomon <bsalomon@google.com>
Fri, 3 Feb 2017 01:59:09 +0000 (20:59 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 3 Feb 2017 02:29:08 +0000 (02:29 +0000)
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>

gm/shadowutils.cpp

index 9fe1405..96554f1 100644 (file)
@@ -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);