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

Unified Diff: cc/trees/layer_tree_host_unittest_serialization.cc

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes according to code review. Created 4 years, 4 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
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 008a26dd531b2efb4eedb429b0eff06b0d8dea00..f2c7d1d9aa2c2e1bd543c161dddf9d7a7feba7d2 100644
--- a/cc/trees/layer_tree_host_unittest_serialization.cc
+++ b/cc/trees/layer_tree_host_unittest_serialization.cc
@@ -92,9 +92,9 @@ class LayerTreeHostSerializationTest : public testing::Test {
void VerifyHostHasAllExpectedLayersInTree(Layer* root_layer) {
LayerTreeHostCommon::CallFunctionForEveryLayer(
- root_layer->layer_tree_host(), [root_layer](Layer* layer) {
+ root_layer->GetLayerTree(), [root_layer](Layer* layer) {
DCHECK(layer->layer_tree_host());
- EXPECT_EQ(layer, layer->layer_tree_host()->LayerById(layer->id()));
+ EXPECT_EQ(layer, layer->GetLayerTree()->LayerById(layer->id()));
});
}
@@ -218,7 +218,7 @@ class LayerTreeHostSerializationTest : public testing::Test {
if (layer_tree_host_dst_->property_trees_.sequence_number) {
int seq_num = layer_tree_host_dst_->property_trees_.sequence_number;
LayerTreeHostCommon::CallFunctionForEveryLayer(
- layer_tree_host_dst_.get(), [seq_num](Layer* layer) {
+ layer_tree_host_dst_->GetLayerTree(), [seq_num](Layer* layer) {
EXPECT_EQ(seq_num, layer->property_tree_sequence_number());
});
}

Powered by Google App Engine
This is Rietveld 408576698