| Index: cc/trees/damage_tracker_unittest.cc
|
| diff --git a/cc/trees/damage_tracker_unittest.cc b/cc/trees/damage_tracker_unittest.cc
|
| index 972775970297a1b704cdd33e5a45e13d522bced6..831b1f718ec22be4642adca1454af07326c232a2 100644
|
| --- a/cc/trees/damage_tracker_unittest.cc
|
| +++ b/cc/trees/damage_tracker_unittest.cc
|
| @@ -89,14 +89,12 @@ class DamageTrackerTest : public testing::Test {
|
|
|
| root->SetPosition(gfx::PointF());
|
| root->SetBounds(gfx::Size(500, 500));
|
| - root->SetContentBounds(gfx::Size(500, 500));
|
| root->SetDrawsContent(true);
|
| root->SetHasRenderSurface(true);
|
| root->render_surface()->SetContentRect(gfx::Rect(0, 0, 500, 500));
|
|
|
| child->SetPosition(gfx::PointF(100.f, 100.f));
|
| child->SetBounds(gfx::Size(30, 30));
|
| - child->SetContentBounds(gfx::Size(30, 30));
|
| child->SetDrawsContent(true);
|
| root->AddChild(child.Pass());
|
|
|
| @@ -121,14 +119,12 @@ class DamageTrackerTest : public testing::Test {
|
|
|
| root->SetPosition(gfx::PointF());
|
| root->SetBounds(gfx::Size(500, 500));
|
| - root->SetContentBounds(gfx::Size(500, 500));
|
| root->SetDrawsContent(true);
|
| root->SetHasRenderSurface(true);
|
| root->render_surface()->SetContentRect(gfx::Rect(0, 0, 500, 500));
|
|
|
| child1->SetPosition(gfx::PointF(100.f, 100.f));
|
| child1->SetBounds(gfx::Size(30, 30));
|
| - child1->SetContentBounds(gfx::Size(30, 30));
|
| // With a child that draws_content, opacity will cause the layer to create
|
| // its own RenderSurface. This layer does not draw, but is intended to
|
| // create its own RenderSurface.
|
| @@ -137,17 +133,14 @@ class DamageTrackerTest : public testing::Test {
|
|
|
| child2->SetPosition(gfx::PointF(11.f, 11.f));
|
| child2->SetBounds(gfx::Size(18, 18));
|
| - child2->SetContentBounds(gfx::Size(18, 18));
|
| child2->SetDrawsContent(true);
|
|
|
| grand_child1->SetPosition(gfx::PointF(200.f, 200.f));
|
| grand_child1->SetBounds(gfx::Size(6, 8));
|
| - grand_child1->SetContentBounds(gfx::Size(6, 8));
|
| grand_child1->SetDrawsContent(true);
|
|
|
| grand_child2->SetPosition(gfx::PointF(190.f, 190.f));
|
| grand_child2->SetBounds(gfx::Size(6, 8));
|
| - grand_child2->SetContentBounds(gfx::Size(6, 8));
|
| grand_child2->SetDrawsContent(true);
|
|
|
| child1->AddChild(grand_child1.Pass());
|
| @@ -472,7 +465,6 @@ TEST_F(DamageTrackerTest, VerifyDamageForPerspectiveClippedLayer) {
|
| // Set up the child
|
| child->SetPosition(gfx::PointF(0.f, 0.f));
|
| child->SetBounds(gfx::Size(100, 100));
|
| - child->SetContentBounds(gfx::Size(100, 100));
|
| child->SetTransform(transform);
|
| EmulateDrawingOneFrame(root.get());
|
|
|
| @@ -710,7 +702,6 @@ TEST_F(DamageTrackerTest, VerifyDamageForAddingAndRemovingLayer) {
|
| LayerImpl::Create(host_impl_.active_tree(), 3);
|
| child2->SetPosition(gfx::PointF(400.f, 380.f));
|
| child2->SetBounds(gfx::Size(6, 8));
|
| - child2->SetContentBounds(gfx::Size(6, 8));
|
| child2->SetDrawsContent(true);
|
| root->AddChild(child2.Pass());
|
| }
|
| @@ -759,7 +750,6 @@ TEST_F(DamageTrackerTest, VerifyDamageForNewUnchangedLayer) {
|
| LayerImpl::Create(host_impl_.active_tree(), 3);
|
| child2->SetPosition(gfx::PointF(400.f, 380.f));
|
| child2->SetBounds(gfx::Size(6, 8));
|
| - child2->SetContentBounds(gfx::Size(6, 8));
|
| child2->SetDrawsContent(true);
|
| child2->ResetAllChangeTrackingForSubtree();
|
| // Sanity check the initial conditions of the test, if these asserts
|
| @@ -792,7 +782,6 @@ TEST_F(DamageTrackerTest, VerifyDamageForMultipleLayers) {
|
| LayerImpl::Create(host_impl_.active_tree(), 3);
|
| child2->SetPosition(gfx::PointF(400.f, 380.f));
|
| child2->SetBounds(gfx::Size(6, 8));
|
| - child2->SetContentBounds(gfx::Size(6, 8));
|
| child2->SetDrawsContent(true);
|
| root->AddChild(child2.Pass());
|
| }
|
| @@ -1042,7 +1031,6 @@ TEST_F(DamageTrackerTest, VerifyDamageForReplica) {
|
| LayerImpl::Create(host_impl_.active_tree(), 6);
|
| grand_child3->SetPosition(gfx::PointF(240.f, 240.f));
|
| grand_child3->SetBounds(gfx::Size(10, 10));
|
| - grand_child3->SetContentBounds(gfx::Size(10, 10));
|
| grand_child3->SetDrawsContent(true);
|
| child1->AddChild(grand_child3.Pass());
|
| }
|
| @@ -1144,7 +1132,6 @@ TEST_F(DamageTrackerTest, VerifyDamageForMask) {
|
| LayerImpl::Create(host_impl_.active_tree(), 3);
|
| mask_layer->SetPosition(child->position());
|
| mask_layer->SetBounds(child->bounds());
|
| - mask_layer->SetContentBounds(child->bounds());
|
| child->SetMaskLayer(mask_layer.Pass());
|
| child->SetHasRenderSurface(true);
|
| }
|
| @@ -1157,7 +1144,6 @@ TEST_F(DamageTrackerTest, VerifyDamageForMask) {
|
| LayerImpl::Create(host_impl_.active_tree(), 4);
|
| grand_child->SetPosition(gfx::PointF(2.f, 2.f));
|
| grand_child->SetBounds(gfx::Size(2, 2));
|
| - grand_child->SetContentBounds(gfx::Size(2, 2));
|
| grand_child->SetDrawsContent(true);
|
| child->AddChild(grand_child.Pass());
|
| }
|
| @@ -1246,7 +1232,6 @@ TEST_F(DamageTrackerTest, VerifyDamageForReplicaMask) {
|
| LayerImpl::Create(host_impl_.active_tree(), 7);
|
| replica_mask_layer->SetPosition(gfx::PointF());
|
| replica_mask_layer->SetBounds(grand_child1->bounds());
|
| - replica_mask_layer->SetContentBounds(grand_child1->bounds());
|
| grand_child1_replica->SetMaskLayer(replica_mask_layer.Pass());
|
| }
|
| LayerImpl* replica_mask_layer = grand_child1_replica->mask_layer();
|
| @@ -1325,7 +1310,6 @@ TEST_F(DamageTrackerTest, VerifyDamageForReplicaMaskWithTransformOrigin) {
|
| replica_mask_layer->SetPosition(gfx::PointF());
|
| // Note: this is not the transform origin being tested.
|
| replica_mask_layer->SetBounds(grand_child1->bounds());
|
| - replica_mask_layer->SetContentBounds(grand_child1->bounds());
|
| grand_child1_replica->SetMaskLayer(replica_mask_layer.Pass());
|
| }
|
| LayerImpl* replica_mask_layer = grand_child1_replica->mask_layer();
|
| @@ -1459,7 +1443,6 @@ TEST_F(DamageTrackerTest, HugeDamageRect) {
|
| // but has a huge negative position.
|
| child->SetPosition(gfx::PointF());
|
| child->SetBounds(gfx::Size(kBigNumber + i, kBigNumber + i));
|
| - child->SetContentBounds(gfx::Size(kBigNumber + i, kBigNumber + i));
|
| child->SetTransform(transform);
|
| EmulateDrawingOneFrame(root.get());
|
|
|
|
|