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

Unified Diff: cc/layers/layer_impl_unittest.cc

Issue 2053193002: cc : Move LayerImpl::children to test properties (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
Index: cc/layers/layer_impl_unittest.cc
diff --git a/cc/layers/layer_impl_unittest.cc b/cc/layers/layer_impl_unittest.cc
index d521dd8858ff1f856f00a2d94f4dc57762ecf058..9f16df22e0654b0e43549475284a3257d08ac795 100644
--- a/cc/layers/layer_impl_unittest.cc
+++ b/cc/layers/layer_impl_unittest.cc
@@ -134,9 +134,9 @@ TEST(LayerImplTest, VerifyLayerChangesAreTrackedProperly) {
root->layer_tree_impl()->ResetAllChangeTracking();
root->AddChild(LayerImpl::Create(host_impl.active_tree(), 7));
- LayerImpl* child = root->children()[0];
+ LayerImpl* child = root->test_properties()->children[0];
child->AddChild(LayerImpl::Create(host_impl.active_tree(), 8));
- LayerImpl* grand_child = child->children()[0];
+ LayerImpl* grand_child = child->test_properties()->children[0];
root->SetScrollClipLayer(root_clip->id());
host_impl.active_tree()->BuildLayerListAndPropertyTreesForTesting();
@@ -419,7 +419,10 @@ class LayerImplScrollTest : public testing::Test {
}
LayerImpl* layer() {
- return host_impl_.active_tree()->root_layer()->children()[0];
+ return host_impl_.active_tree()
+ ->root_layer()
+ ->test_properties()
+ ->children[0];
}
ScrollTree* scroll_tree(LayerImpl* layer_impl) {

Powered by Google App Engine
This is Rietveld 408576698