@@ -595,51 +595,6 @@ TEST_F(ClipRRectLayerTest, EmptyClipDoesNotCullPlatformView) {
595595 EXPECT_EQ (embedder.painted_views (), std::vector<int64_t >({view_id}));
596596}
597597
598- TEST_F (ClipRRectLayerTest, AntiAliasWithSaveLayerIgnoresSaveLayerImpeller) {
599- enable_impeller ();
600-
601- auto path1 = SkPath ().addRect ({10 , 10 , 30 , 30 });
602- auto mock1 = MockLayer::MakeOpacityCompatible (path1);
603- auto path2 = SkPath ().addRect ({20 , 20 , 40 , 40 });
604- auto mock2 = MockLayer::MakeOpacityCompatible (path2);
605- auto children_bounds = path1.getBounds ();
606- children_bounds.join (path2.getBounds ());
607- SkRect clip_rect = SkRect::MakeWH (500 , 500 );
608- SkRRect clip_rrect = SkRRect::MakeRectXY (clip_rect, 20 , 20 );
609- auto clip_rrect_layer = std::make_shared<ClipRRectLayer>(
610- clip_rrect, Clip::antiAliasWithSaveLayer);
611- clip_rrect_layer->Add (mock1);
612- clip_rrect_layer->Add (mock2);
613-
614- // ClipRectLayer will pass through compatibility from multiple
615- // non-overlapping compatible children
616- PrerollContext* context = preroll_context ();
617- clip_rrect_layer->Preroll (context);
618- EXPECT_EQ (context->renderable_state_flags , 0 );
619-
620- DisplayListBuilder expected_builder;
621- /* OpacityLayer::Paint() */ {
622- expected_builder.Save ();
623- {
624- /* ClipRectLayer::Paint() */ {
625- expected_builder.Save ();
626- expected_builder.ClipRRect (clip_rrect, ClipOp::kIntersect , true );
627- /* child layer1 paint */ {
628- expected_builder.DrawPath (path1, DlPaint ());
629- }
630- /* child layer2 paint */ { //
631- expected_builder.DrawPath (path2, DlPaint ());
632- }
633- // expected_builder.Restore();
634- }
635- }
636- expected_builder.Restore ();
637- }
638-
639- clip_rrect_layer->Paint (display_list_paint_context ());
640- EXPECT_TRUE (DisplayListsEQ_Verbose (expected_builder.Build (), display_list ()));
641- }
642-
643598} // namespace testing
644599} // namespace flutter
645600
0 commit comments