12 t1.
root()->
Add(CreateDisplayListLayer(
38 auto out_bounds_dl = CreateDisplayList(
DlRect::MakeLTRB(100, 100, 120, 120));
41 ASSERT_FALSE(in_bounds_dl->GetBounds().IsEmpty());
42 ASSERT_FALSE(out_bounds_dl->GetBounds().IsEmpty());
46 ASSERT_TRUE(
DlRect::MakeSize(frame_size).Contains(in_bounds_dl->GetBounds()));
48 .IntersectsWithRect(out_bounds_dl->GetBounds()));
51 t1.
root()->
Add(CreateDisplayListLayer(in_bounds_dl));
55 t2.
root()->
Add(CreateDisplayListLayer(in_bounds_dl));
57 t2.
root()->
Add(CreateDisplayListLayer(out_bounds_dl));
68 EXPECT_EQ(damage.frame_damage,
DlIRect());
69 EXPECT_EQ(damage.buffer_damage,
DlIRect());
Damage ComputeDamage(const DlIRect &additional_damage, int horizontal_clip_alignment=0, int vertical_clip_alignment=0) const