Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 59ba1c4

Browse files
author
jonahwilliams
committed
++
1 parent 4cfd1cf commit 59ba1c4

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

impeller/aiks/aiks_gradient_unittests.cc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -744,13 +744,13 @@ TEST_P(AiksTest, FastGradientTestHorizontal) {
744744
std::vector<Scalar> stops = {0.0, 0.1, 1.0};
745745

746746
paint.color_source = ColorSource::MakeLinearGradient(
747-
{0, 0}, {600, 0}, std::move(colors), std::move(stops),
747+
{0, 0}, {300, 0}, std::move(colors), std::move(stops),
748748
Entity::TileMode::kClamp, {});
749749

750750
paint.color = Color(1.0, 1.0, 1.0, 1.0);
751-
canvas.DrawRect(Rect::MakeXYWH(0, 0, 600, 600), paint);
752-
canvas.Translate({800, 0, 0});
753-
canvas.DrawRRect(Rect::MakeXYWH(0, 0, 600, 600), Size(4, 4), paint);
751+
canvas.DrawRect(Rect::MakeXYWH(0, 0, 300, 300), paint);
752+
canvas.Translate({400, 0, 0});
753+
canvas.DrawRRect(Rect::MakeXYWH(0, 0, 300, 300), Size(4, 4), paint);
754754

755755
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
756756
}
@@ -765,13 +765,13 @@ TEST_P(AiksTest, FastGradientTestVertical) {
765765
std::vector<Scalar> stops = {0.0, 0.1, 1.0};
766766

767767
paint.color_source = ColorSource::MakeLinearGradient(
768-
{0, 0}, {0, 600}, std::move(colors), std::move(stops),
768+
{0, 0}, {0, 300}, std::move(colors), std::move(stops),
769769
Entity::TileMode::kClamp, {});
770770

771771
paint.color = Color(1.0, 1.0, 1.0, 1.0);
772-
canvas.DrawRect(Rect::MakeXYWH(0, 0, 600, 600), paint);
773-
canvas.Translate({800, 0, 0});
774-
canvas.DrawRRect(Rect::MakeXYWH(0, 0, 600, 600), Size(4, 4), paint);
772+
canvas.DrawRect(Rect::MakeXYWH(0, 0, 300, 300), paint);
773+
canvas.Translate({400, 0, 0});
774+
canvas.DrawRRect(Rect::MakeXYWH(0, 0, 300, 300), Size(4, 4), paint);
775775

776776
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
777777
}
@@ -786,13 +786,13 @@ TEST_P(AiksTest, FastGradientTestHorizontalReversed) {
786786
std::vector<Scalar> stops = {0.0, 0.1, 1.0};
787787

788788
paint.color_source = ColorSource::MakeLinearGradient(
789-
{600, 0}, {0, 0}, std::move(colors), std::move(stops),
789+
{300, 0}, {0, 0}, std::move(colors), std::move(stops),
790790
Entity::TileMode::kClamp, {});
791791

792792
paint.color = Color(1.0, 1.0, 1.0, 1.0);
793-
canvas.DrawRect(Rect::MakeXYWH(0, 0, 600, 600), paint);
794-
canvas.Translate({800, 0, 0});
795-
canvas.DrawRRect(Rect::MakeXYWH(0, 0, 600, 600), Size(4, 4), paint);
793+
canvas.DrawRect(Rect::MakeXYWH(0, 0, 300, 300), paint);
794+
canvas.Translate({400, 0, 0});
795+
canvas.DrawRRect(Rect::MakeXYWH(0, 0, 300, 300), Size(4, 4), paint);
796796

797797
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
798798
}
@@ -807,13 +807,13 @@ TEST_P(AiksTest, FastGradientTestVerticalReversed) {
807807
std::vector<Scalar> stops = {0.0, 0.1, 1.0};
808808

809809
paint.color_source = ColorSource::MakeLinearGradient(
810-
{0, 600}, {0, 0}, std::move(colors), std::move(stops),
810+
{0, 300}, {0, 0}, std::move(colors), std::move(stops),
811811
Entity::TileMode::kClamp, {});
812812

813813
paint.color = Color(1.0, 1.0, 1.0, 1.0);
814-
canvas.DrawRect(Rect::MakeXYWH(0, 0, 600, 600), paint);
815-
canvas.Translate({800, 0, 0});
816-
canvas.DrawRRect(Rect::MakeXYWH(0, 0, 600, 600), Size(4, 4), paint);
814+
canvas.DrawRect(Rect::MakeXYWH(0, 0, 300, 300), paint);
815+
canvas.Translate({400, 0, 0});
816+
canvas.DrawRRect(Rect::MakeXYWH(0, 0, 300, 300), Size(4, 4), paint);
817817

818818
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
819819
}

0 commit comments

Comments
 (0)