diff options
author | 2017-08-02 09:40:26 -0400 | |
---|---|---|
committer | 2017-08-02 14:02:36 +0000 | |
commit | 50f7a1e4abea043b57a39ea1da53a0697bfa1f01 (patch) | |
tree | 05de354be07b54b3c7146fa918c272fb4272519c | |
parent | 82d97bdbfc0a8dcaca5afb1290e48625c75e1175 (diff) |
Add another sweep gradient tiling test
Expand the existing GM with a column "stretching" the [0,1] color stop
domain onto something much wider than [0,360].
Change-Id: Ica4c4b40c2cad20fec12b7d2871354e119a7bcf2
Reviewed-on: https://skia-review.googlesource.com/29880
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
-rw-r--r-- | gm/gradients.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/gradients.cpp b/gm/gradients.cpp index 85ac6906da..633879cae8 100644 --- a/gm/gradients.cpp +++ b/gm/gradients.cpp @@ -1034,7 +1034,7 @@ DEF_SIMPLE_GM(fancy_gradients, canvas, 800, 300) { }); } -DEF_SIMPLE_GM(sweep_tiling, canvas, 512, 512) { +DEF_SIMPLE_GM(sweep_tiling, canvas, 512, 690) { static constexpr SkScalar size = 160; static constexpr SkColor colors[] = { SK_ColorBLUE, SK_ColorYELLOW, SK_ColorGREEN }; static constexpr SkScalar pos[] = { 0, .25f, .50f }; @@ -1050,6 +1050,7 @@ DEF_SIMPLE_GM(sweep_tiling, canvas, 512, 512) { { -330, -270 }, { 30, 90 }, { 390, 450 }, + { -30, 800 }, }; SkPaint p; |