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

Unified Diff: cc/trees/layer_tree_host_unittest_serialization.cc

Issue 1846043002: cc : Make CallFunctionForSubtree on impl use layer iterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 cae21caa5f05fa99ec1cd62e9b643355b740782c..5acc194a63cd4904a7d48507e9a6079f17e68894 100644
--- a/cc/trees/layer_tree_host_unittest_serialization.cc
+++ b/cc/trees/layer_tree_host_unittest_serialization.cc
@@ -46,7 +46,7 @@ class LayerTreeHostSerializationTest : public testing::Test {
}
void VerifyHostHasAllExpectedLayersInTree(Layer* root_layer) {
- LayerTreeHostCommon::CallFunctionForSubtree(
+ LayerTreeHostCommon::CallFunctionForEveryLayer(
root_layer, [root_layer](Layer* layer) {
DCHECK(layer->layer_tree_host());
EXPECT_EQ(layer, layer->layer_tree_host()->LayerById(layer->id()));
@@ -171,7 +171,7 @@ class LayerTreeHostSerializationTest : public testing::Test {
// All layers must have a property tree index that matches PropertyTrees.
if (layer_tree_host_dst_->property_trees_.sequence_number) {
int seq_num = layer_tree_host_dst_->property_trees_.sequence_number;
- LayerTreeHostCommon::CallFunctionForSubtree(
+ LayerTreeHostCommon::CallFunctionForEveryLayer(
layer_tree_host_dst_->root_layer_.get(), [seq_num](Layer* layer) {
EXPECT_EQ(seq_num, layer->property_tree_sequence_number());
});

Powered by Google App Engine
This is Rietveld 408576698