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

Unified Diff: cc/layers/layer_impl_test_properties.cc

Issue 2053983003: cc : Move LayerImpl::parent to test properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments 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_impl_test_properties.h ('k') | cc/layers/layer_list_iterator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl_test_properties.cc
diff --git a/cc/layers/layer_impl_test_properties.cc b/cc/layers/layer_impl_test_properties.cc
index 631272d7f95e87c86b44b5be126437ec98e93647..dd2e26885af3c3207ba7998cd9ada2a64af8f94d 100644
--- a/cc/layers/layer_impl_test_properties.cc
+++ b/cc/layers/layer_impl_test_properties.cc
@@ -24,7 +24,8 @@ LayerImplTestProperties::LayerImplTestProperties(LayerImpl* owning_layer)
scroll_parent(nullptr),
clip_parent(nullptr),
mask_layer(nullptr),
- replica_layer(nullptr) {}
+ replica_layer(nullptr),
+ parent(nullptr) {}
LayerImplTestProperties::~LayerImplTestProperties() {}
@@ -44,7 +45,7 @@ void LayerImplTestProperties::SetReplicaLayer(
}
replica_layer = replica.get();
if (replica) {
- replica->SetParent(owning_layer);
+ replica->test_properties()->parent = owning_layer;
owning_layer->layer_tree_impl()->AddLayer(std::move(replica));
}
}
« no previous file with comments | « cc/layers/layer_impl_test_properties.h ('k') | cc/layers/layer_list_iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698