@@ -4863,8 +4863,6 @@ TEST_F(DisplayListTest, ClipPathOvalNonCulling) {
48634863 auto non_encompassing_oval = clip.makeOutset (2 .071f , 2 .071f );
48644864 SkPath path;
48654865 path.addOval (non_encompassing_oval);
4866- SkRRect rrect;
4867- rrect.setOval (non_encompassing_oval);
48684866
48694867 DisplayListBuilder cull_builder;
48704868 cull_builder.ClipRect (clip, ClipOp::kIntersect , false );
@@ -4873,9 +4871,8 @@ TEST_F(DisplayListTest, ClipPathOvalNonCulling) {
48734871
48744872 CLIP_EXPECTOR (expector);
48754873 expector.addExpectation (clip, ClipOp::kIntersect , false );
4876- // Builder will not cull this clip, but it will turn it into a ClipRRect
4877- // Eventually it should turn it into a ClipOval
4878- expector.addExpectation (rrect, ClipOp::kIntersect , false );
4874+ // Builder will not cull this clip, but it will turn it into a ClipOval
4875+ expector.addOvalExpectation (non_encompassing_oval, ClipOp::kIntersect , false );
48794876 cull_dl->Dispatch (expector);
48804877}
48814878
@@ -5088,9 +5085,7 @@ TEST_F(DisplayListTest, ClipOvalRRectPromoteToClipOval) {
50885085 expected.DrawRect (draw_rect, DlPaint ());
50895086 auto expect_dl = expected.Build ();
50905087
5091- // Support for this will be re-added soon, until then verify that we
5092- // do not promote.
5093- ASSERT_TRUE (DisplayListsNE_Verbose (dl, expect_dl));
5088+ ASSERT_TRUE (DisplayListsEQ_Verbose (dl, expect_dl));
50945089}
50955090
50965091TEST_F (DisplayListTest, ClipRectPathPromoteToClipRect) {
@@ -5132,9 +5127,7 @@ TEST_F(DisplayListTest, ClipOvalPathPromoteToClipOval) {
51325127 expected.DrawRect (draw_rect, DlPaint ());
51335128 auto expect_dl = expected.Build ();
51345129
5135- // Support for this will be re-added soon, until then verify that we
5136- // do not promote.
5137- ASSERT_TRUE (DisplayListsNE_Verbose (dl, expect_dl));
5130+ ASSERT_TRUE (DisplayListsEQ_Verbose (dl, expect_dl));
51385131}
51395132
51405133TEST_F (DisplayListTest, ClipRRectPathPromoteToClipRRect) {
@@ -5273,9 +5266,7 @@ TEST_F(DisplayListTest, ClipOvalRRectPathPromoteToClipOval) {
52735266 expected.DrawRect (draw_rect, DlPaint ());
52745267 auto expect_dl = expected.Build ();
52755268
5276- // Support for this will be re-added soon, until then verify that we
5277- // do not promote.
5278- ASSERT_TRUE (DisplayListsNE_Verbose (dl, expect_dl));
5269+ ASSERT_TRUE (DisplayListsEQ_Verbose (dl, expect_dl));
52795270}
52805271
52815272TEST_F (DisplayListTest, BoundedRenderOpsDoNotReportUnbounded) {
0 commit comments