Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 2084233002: cc: Move LayerImpl::AddChild and RemoveChild to LayerImplTestProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_utils_unittest.cc ('k') | cc/layers/render_surface_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index 61ac6bb99b8dd4d47431757071940e6e5532e8dc..4d01ffa0af6329d464fefe9cc89e4c579a016665 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -3694,7 +3694,8 @@ TEST_F(OcclusionTrackingPictureLayerImplTest,
EXPECT_EQ(unoccluded_tile_count, 25);
// Partial occlusion.
- pending_layer()->AddChild(LayerImpl::Create(host_impl()->pending_tree(), 1));
+ pending_layer()->test_properties()->AddChild(
+ LayerImpl::Create(host_impl()->pending_tree(), 1));
LayerImpl* layer1 = pending_layer()->test_properties()->children[0];
layer1->SetBounds(layer_bounds);
layer1->SetDrawsContent(true);
@@ -3789,7 +3790,8 @@ TEST_F(OcclusionTrackingPictureLayerImplTest,
}
// Partial occlusion.
- pending_layer()->AddChild(LayerImpl::Create(host_impl()->pending_tree(), 1));
+ pending_layer()->test_properties()->AddChild(
+ LayerImpl::Create(host_impl()->pending_tree(), 1));
LayerImpl* layer1 = pending_layer()->test_properties()->children[0];
layer1->SetBounds(layer_bounds);
layer1->SetDrawsContent(true);
@@ -3886,7 +3888,8 @@ TEST_F(OcclusionTrackingPictureLayerImplTest, OcclusionForDifferentScales) {
SetupPendingTreeWithFixedTileSize(pending_raster_source, tile_size, Region());
ASSERT_TRUE(pending_layer()->CanHaveTilings());
- pending_layer()->AddChild(LayerImpl::Create(host_impl()->pending_tree(), 1));
+ pending_layer()->test_properties()->AddChild(
+ LayerImpl::Create(host_impl()->pending_tree(), 1));
LayerImpl* layer1 = pending_layer()->test_properties()->children[0];
layer1->SetBounds(layer_bounds);
layer1->SetDrawsContent(true);
@@ -3961,7 +3964,8 @@ TEST_F(OcclusionTrackingPictureLayerImplTest, DifferentOcclusionOnTrees) {
SetupPendingTree(active_raster_source);
// Partially occlude the active layer.
- pending_layer()->AddChild(LayerImpl::Create(host_impl()->pending_tree(), 2));
+ pending_layer()->test_properties()->AddChild(
+ LayerImpl::Create(host_impl()->pending_tree(), 2));
LayerImpl* layer1 = pending_layer()->test_properties()->children[0];
layer1->SetBounds(layer_bounds);
layer1->SetDrawsContent(true);
@@ -4055,7 +4059,8 @@ TEST_F(OcclusionTrackingPictureLayerImplTest,
SetupPendingTreeWithFixedTileSize(active_raster_source, tile_size, Region());
// Partially occlude the active layer.
- pending_layer()->AddChild(LayerImpl::Create(host_impl()->pending_tree(), 2));
+ pending_layer()->test_properties()->AddChild(
+ LayerImpl::Create(host_impl()->pending_tree(), 2));
LayerImpl* active_occluding_layer =
pending_layer()->test_properties()->children[0];
active_occluding_layer->SetBounds(layer_bounds);
@@ -4071,7 +4076,8 @@ TEST_F(OcclusionTrackingPictureLayerImplTest,
invalidation_rect);
// Partially occlude the pending layer in a different way.
- pending_layer()->AddChild(LayerImpl::Create(host_impl()->pending_tree(), 3));
+ pending_layer()->test_properties()->AddChild(
+ LayerImpl::Create(host_impl()->pending_tree(), 3));
LayerImpl* pending_occluding_layer =
pending_layer()->test_properties()->children[0];
pending_occluding_layer->SetBounds(layer_bounds);
« no previous file with comments | « cc/layers/layer_utils_unittest.cc ('k') | cc/layers/render_surface_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698