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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 1909283004: cc: Remove LayerImpl::children() calls after tree synchronization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 34e68e17ae8e58a28b8aca92ce1e9ac327063625..58977440488f71122e90deadbe0faf62a2c3eadc 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -229,10 +229,9 @@ class LayerTreeHostImplTest : public testing::Test,
return gfx::Vector2dF(delta.x(), delta.y());
}
- static void ExpectClearedScrollDeltasRecursive(LayerImpl* layer) {
- ASSERT_EQ(ScrollDelta(layer), gfx::Vector2d());
- for (size_t i = 0; i < layer->children().size(); ++i)
- ExpectClearedScrollDeltasRecursive(layer->children()[i]);
+ static void ExpectClearedScrollDeltasRecursive(LayerImpl* root) {
+ for (auto* layer : *root->layer_tree_impl())
+ ASSERT_EQ(ScrollDelta(layer), gfx::Vector2d());
}
static ::testing::AssertionResult ScrollInfoContains(
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698