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

Unified Diff: cc/trees/layer_tree_host_common_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/trees/layer_tree_host_common_unittest.cc
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index a5f1f9475b210a9ea935348a4befd1c12e9776f7..0872bff87391641e9ec9fcc0cf59ff2e8923f21a 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -3713,8 +3713,12 @@ TEST_F(LayerTreeHostCommonTest,
bool update_lcd_text = false;
host_impl.active_tree()->UpdateDrawProperties(update_lcd_text);
- LayerImpl* grand_child_ptr =
- host_impl.active_tree()->root_layer()->children()[0]->children()[0];
+ LayerImpl* grand_child_ptr = host_impl.active_tree()
+ ->root_layer()
+ ->test_properties()
+ ->children[0]
+ ->test_properties()
+ ->children[0];
// Though all layers have invertible transforms, matrix multiplication using
// floating-point math makes the draw transform uninvertible.
@@ -8059,7 +8063,7 @@ TEST_F(LayerTreeHostCommonTest, BoundsDeltaAffectVisibleContentRect) {
root->AddChild(LayerImpl::Create(host_impl.active_tree(), 2));
- LayerImpl* sublayer = root->child_at(0);
+ LayerImpl* sublayer = root->test_properties()->children[0];
SetLayerPropertiesForTesting(sublayer,
identity_matrix,
gfx::Point3F(),

Powered by Google App Engine
This is Rietveld 408576698