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

Unified Diff: cc/trees/layer_tree_host_unittest_serialization.cc

Issue 2331983002: cc: Make LayerTreeHost a protected Layer member. (Closed)
Patch Set: settings Created 4 years, 3 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/trees/layer_tree_host_unittest.cc ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_serialization.cc
diff --git a/cc/trees/layer_tree_host_unittest_serialization.cc b/cc/trees/layer_tree_host_unittest_serialization.cc
index 416f4a83d4b5135d926101ad4f3c869839ada5f8..e530074dd47fb8361f387bc0751456e011abe9e1 100644
--- a/cc/trees/layer_tree_host_unittest_serialization.cc
+++ b/cc/trees/layer_tree_host_unittest_serialization.cc
@@ -93,7 +93,7 @@ class LayerTreeHostSerializationTest : public testing::Test {
void VerifyHostHasAllExpectedLayersInTree(Layer* root_layer) {
LayerTreeHostCommon::CallFunctionForEveryLayer(
root_layer->GetLayerTree(), [root_layer](Layer* layer) {
- DCHECK(layer->layer_tree_host());
+ DCHECK(layer->GetLayerTreeHostForTesting());
EXPECT_EQ(layer, layer->GetLayerTree()->LayerById(layer->id()));
});
}
@@ -118,7 +118,7 @@ class LayerTreeHostSerializationTest : public testing::Test {
EXPECT_EQ(layer_tree_host_src_->root_layer()->id(),
layer_tree_host_dst_->root_layer()->id());
EXPECT_EQ(layer_tree_host_dst_.get(),
- layer_tree_dst->inputs_.root_layer->layer_tree_host());
+ layer_tree_dst->inputs_.root_layer->GetLayerTreeHostForTesting());
EXPECT_EQ(layer_tree_src->inputs_.root_layer->double_sided(),
layer_tree_dst->inputs_.root_layer->double_sided());
EXPECT_EQ(
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698