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:
parent
82d97bdbfc
commit
50f7a1e4ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user