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

Side by Side Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 2054483002: Revert of cc : Make LayerImpl destruction independent of tree hierarchy (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 unified diff | Download patch
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host_common.h" 5 #include "cc/trees/layer_tree_host_common.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 7734 matching lines...) Expand 10 before | Expand all | Expand 10 after
7745 7745
7746 expected.clear(); 7746 expected.clear();
7747 expected.insert(grand_child2_raw); 7747 expected.insert(grand_child2_raw);
7748 expected.insert(child_raw->mask_layer()); 7748 expected.insert(child_raw->mask_layer());
7749 expected.insert(child_raw->replica_layer()->mask_layer()); 7749 expected.insert(child_raw->replica_layer()->mask_layer());
7750 7750
7751 actual.clear(); 7751 actual.clear();
7752 GatherDrawnLayers(render_surface_layer_list_impl(), &actual); 7752 GatherDrawnLayers(render_surface_layer_list_impl(), &actual);
7753 EXPECT_EQ(expected, actual); 7753 EXPECT_EQ(expected, actual);
7754 7754
7755 child_raw->TakeReplicaLayerForTesting(); 7755 child_raw->TakeReplicaLayer();
7756 7756
7757 // With nothing drawing, we should have no layers. 7757 // With nothing drawing, we should have no layers.
7758 grand_child2_raw->SetDrawsContent(false); 7758 grand_child2_raw->SetDrawsContent(false);
7759 7759
7760 ExecuteCalculateDrawProperties(grand_parent_raw); 7760 ExecuteCalculateDrawProperties(grand_parent_raw);
7761 7761
7762 EXPECT_FALSE(grand_parent_raw->is_drawn_render_surface_layer_list_member()); 7762 EXPECT_FALSE(grand_parent_raw->is_drawn_render_surface_layer_list_member());
7763 EXPECT_FALSE(parent_raw->is_drawn_render_surface_layer_list_member()); 7763 EXPECT_FALSE(parent_raw->is_drawn_render_surface_layer_list_member());
7764 EXPECT_FALSE(child_raw->is_drawn_render_surface_layer_list_member()); 7764 EXPECT_FALSE(child_raw->is_drawn_render_surface_layer_list_member());
7765 EXPECT_FALSE( 7765 EXPECT_FALSE(
(...skipping 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after
10195 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index()); 10195 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index());
10196 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index()); 10196 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index());
10197 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index()); 10197 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index());
10198 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index()); 10198 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index());
10199 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index()); 10199 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index());
10200 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index()); 10200 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index());
10201 } 10201 }
10202 10202
10203 } // namespace 10203 } // namespace
10204 } // namespace cc 10204 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698