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>
This commit is contained in:
Florin Malita 2017-08-02 09:40:26 -04:00 committed by Skia Commit-Bot
parent 82d97bdbfc
commit 50f7a1e4ab

View File

@ -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;