@@ -789,38 +789,38 @@ TEST_P(AiksTest, GaussianBlurStyleInnerGradient) {
789789}
790790
791791// / TODO(gaaclarke): This still doesn't work with stencil and cover.
792- // TEST_P(AiksTest, GaussianBlurStyleSolidGradient) {
793- // Canvas canvas;
794- // canvas.Scale(GetContentScale());
795-
796- // canvas.DrawPaint({.color = Color(0.1, 0.1, 0.1, 1.0)});
797-
798- // std::vector<Color> colors = {Color{0.9568, 0.2627, 0.2118, 1.0},
799- // Color{0.7568, 0.2627, 0.2118, 1.0}};
800- // std::vector<Scalar> stops = {0.0, 1.0};
801-
802- // Paint paint;
803- // paint.color_source = ColorSource::MakeLinearGradient(
804- // {0, 0}, {200, 200}, std::move(colors), std::move(stops),
805- // Entity::TileMode::kMirror, {});
806- // paint.mask_blur_descriptor = Paint::MaskBlurDescriptor{
807- // .style = FilterContents::BlurStyle::kSolid,
808- // .sigma = Sigma(30),
809- // };
810- // canvas.DrawPath(PathBuilder()
811- // .MoveTo({200, 200})
812- // .LineTo({300, 400})
813- // .LineTo({100, 400})
814- // .Close()
815- // .TakePath(),
816- // paint);
817-
818- // // Draw another thing to make sure the clip area is reset.
819- // Paint red;
820- // red.color = Color::Red();
821- // canvas.DrawRect(Rect::MakeXYWH(0, 0, 200, 200), red);
822- // ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
823- // }
792+ TEST_P (AiksTest, GaussianBlurStyleSolidGradient) {
793+ Canvas canvas;
794+ canvas.Scale (GetContentScale ());
795+
796+ canvas.DrawPaint ({.color = Color (0.1 , 0.1 , 0.1 , 1.0 )});
797+
798+ std::vector<Color> colors = {Color{0.9568 , 0.2627 , 0.2118 , 1.0 },
799+ Color{0.7568 , 0.2627 , 0.2118 , 1.0 }};
800+ std::vector<Scalar> stops = {0.0 , 1.0 };
801+
802+ Paint paint;
803+ paint.color_source = ColorSource::MakeLinearGradient (
804+ {0 , 0 }, {200 , 200 }, std::move (colors), std::move (stops),
805+ Entity::TileMode::kMirror , {});
806+ paint.mask_blur_descriptor = Paint::MaskBlurDescriptor{
807+ .style = FilterContents::BlurStyle::kSolid ,
808+ .sigma = Sigma (30 ),
809+ };
810+ canvas.DrawPath (PathBuilder ()
811+ .MoveTo ({200 , 200 })
812+ .LineTo ({300 , 400 })
813+ .LineTo ({100 , 400 })
814+ .Close ()
815+ .TakePath (),
816+ paint);
817+
818+ // Draw another thing to make sure the clip area is reset.
819+ Paint red;
820+ red.color = Color::Red ();
821+ canvas.DrawRect (Rect::MakeXYWH (0 , 0 , 200 , 200 ), red);
822+ ASSERT_TRUE (OpenPlaygroundHere (canvas.EndRecordingAsPicture ()));
823+ }
824824
825825TEST_P (AiksTest, GaussianBlurStyleOuterGradient) {
826826 Canvas canvas;
0 commit comments