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

Unified Diff: cc/trees/layer_tree_impl_unittest.cc

Issue 2080703005: cc: Remove LayerTreeImpl::root_layer usage outside tests (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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl_unittest.cc
diff --git a/cc/trees/layer_tree_impl_unittest.cc b/cc/trees/layer_tree_impl_unittest.cc
index 0b5b521a44e33bace70ead0260e4460a6000797b..1a6cdff69b194fe19d02b287c371b8b6bb72231e 100644
--- a/cc/trees/layer_tree_impl_unittest.cc
+++ b/cc/trees/layer_tree_impl_unittest.cc
@@ -135,7 +135,8 @@ TEST_F(LayerTreeImplTest, UpdateViewportAndHitTest) {
EXPECT_EQ(
gfx::RectF(gfx::SizeF(bounds)),
host_impl->active_tree()->property_trees()->clip_tree.ViewportClip());
- EXPECT_EQ(gfx::Rect(bounds), host_impl->RootLayer()->visible_layer_rect());
+ EXPECT_EQ(gfx::Rect(bounds),
+ host_impl->active_tree()->root_layer()->visible_layer_rect());
gfx::Size new_bounds(50, 50);
host_impl->SetViewportSize(new_bounds);
@@ -145,7 +146,7 @@ TEST_F(LayerTreeImplTest, UpdateViewportAndHitTest) {
gfx::RectF(gfx::SizeF(new_bounds)),
host_impl->active_tree()->property_trees()->clip_tree.ViewportClip());
EXPECT_EQ(gfx::Rect(new_bounds),
- host_impl->RootLayer()->visible_layer_rect());
+ host_impl->active_tree()->root_layer()->visible_layer_rect());
}
TEST_F(LayerTreeImplTest, HitTestingForSingleLayerAndHud) {
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698