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

Unified Diff: cc/trees/layer_tree_host_unittest_serialization.cc

Issue 1907053004: cc: Make CallFunctionForEveryLayer use LayerListIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: FindLayers should skip layers instead of returning when switching from call-function to iteration l… 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/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 da18690617a2ffdaae3bc43cb2850b66519424c0..2e4dc0da04165aff103b78cde080ceae939ce6cc 100644
--- a/cc/trees/layer_tree_host_unittest_serialization.cc
+++ b/cc/trees/layer_tree_host_unittest_serialization.cc
@@ -47,12 +47,10 @@ class LayerTreeHostSerializationTest : public testing::Test {
void VerifyHostHasAllExpectedLayersInTree(Layer* root_layer) {
LayerTreeHostCommon::CallFunctionForEveryLayer(
- root_layer->layer_tree_host(),
- [root_layer](Layer* layer) {
+ root_layer->layer_tree_host(), [root_layer](Layer* layer) {
DCHECK(layer->layer_tree_host());
EXPECT_EQ(layer, layer->layer_tree_host()->LayerById(layer->id()));
- },
- CallFunctionLayerType::ALL_LAYERS);
+ });
}
void VerifySerializationAndDeserialization() {
@@ -174,11 +172,9 @@ class LayerTreeHostSerializationTest : public testing::Test {
if (layer_tree_host_dst_->property_trees_.sequence_number) {
int seq_num = layer_tree_host_dst_->property_trees_.sequence_number;
LayerTreeHostCommon::CallFunctionForEveryLayer(
- layer_tree_host_dst_.get(),
- [seq_num](Layer* layer) {
+ layer_tree_host_dst_.get(), [seq_num](Layer* layer) {
EXPECT_EQ(seq_num, layer->property_tree_sequence_number());
- },
- CallFunctionLayerType::ALL_LAYERS);
+ });
}
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698