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

Unified Diff: cc/test/test_layer_tree_host_base.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/test/layer_tree_json_parser_unittest.cc ('k') | cc/tiles/tile_manager_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_layer_tree_host_base.cc
diff --git a/cc/test/test_layer_tree_host_base.cc b/cc/test/test_layer_tree_host_base.cc
index becc2c1dbdd6315302b5a9ea02fb6bf9a47dae83..214d72523d2d977f737c2730d52b233068d02e04 100644
--- a/cc/test/test_layer_tree_host_base.cc
+++ b/cc/test/test_layer_tree_host_base.cc
@@ -120,9 +120,8 @@ void TestLayerTreeHostBase::SetupPendingTree(
pending_tree->SetRootLayer(std::move(new_pending_root));
} else {
pending_layer.reset(static_cast<FakePictureLayerImpl*>(
- pending_root
- ->RemoveChildForTesting(
- pending_root->test_properties()->children[0])
+ pending_root->test_properties()
+ ->RemoveChild(pending_root->test_properties()->children[0])
.release()));
if (!tile_size.IsEmpty())
pending_layer->set_fixed_tile_size(tile_size);
@@ -132,7 +131,7 @@ void TestLayerTreeHostBase::SetupPendingTree(
pending_layer->SetBounds(raster_source->GetSize());
pending_layer->SetRasterSourceOnPending(raster_source, invalidation);
- pending_root->AddChild(std::move(pending_layer));
+ pending_root->test_properties()->AddChild(std::move(pending_layer));
pending_tree->SetViewportLayersFromIds(Layer::INVALID_ID,
pending_tree->root_layer()->id(),
Layer::INVALID_ID, Layer::INVALID_ID);
« no previous file with comments | « cc/test/layer_tree_json_parser_unittest.cc ('k') | cc/tiles/tile_manager_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698