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

Unified Diff: cc/trees/layer_tree_host_unittest_damage.cc

Issue 2080223010: cc: Clean up root_layer code in LTI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase++ 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_host_unittest_copyrequest.cc ('k') | cc/trees/layer_tree_host_unittest_occlusion.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_damage.cc
diff --git a/cc/trees/layer_tree_host_unittest_damage.cc b/cc/trees/layer_tree_host_unittest_damage.cc
index a9afb92b67c93c98150989cef22a5b07c71f7824..246f9100a8741e4477cbe1e8150a9304a9b62445 100644
--- a/cc/trees/layer_tree_host_unittest_damage.cc
+++ b/cc/trees/layer_tree_host_unittest_damage.cc
@@ -54,7 +54,7 @@ class LayerTreeHostDamageTestSetNeedsRedraw
EXPECT_EQ(DRAW_SUCCESS, draw_result);
RenderSurfaceImpl* root_surface =
- impl->active_tree()->root_layer()->render_surface();
+ impl->active_tree()->root_layer_for_testing()->render_surface();
gfx::Rect root_damage =
root_surface->damage_tracker()->current_damage_rect();
@@ -116,7 +116,7 @@ class LayerTreeHostDamageTestSetViewportSize
EXPECT_EQ(DRAW_SUCCESS, draw_result);
RenderSurfaceImpl* root_surface =
- impl->active_tree()->root_layer()->render_surface();
+ impl->active_tree()->root_layer_for_testing()->render_surface();
gfx::Rect root_damage =
root_surface->damage_tracker()->current_damage_rect();
@@ -260,7 +260,7 @@ class LayerTreeHostDamageTestForcedFullDamage : public LayerTreeHostDamageTest {
EXPECT_EQ(DRAW_SUCCESS, draw_result);
RenderSurfaceImpl* root_surface =
- host_impl->active_tree()->root_layer()->render_surface();
+ host_impl->active_tree()->root_layer_for_testing()->render_surface();
gfx::Rect root_damage =
root_surface->damage_tracker()->current_damage_rect();
root_damage.Intersect(root_surface->content_rect());
@@ -385,7 +385,7 @@ class LayerTreeHostDamageTestScrollbarDoesDamage
DrawResult draw_result) override {
EXPECT_EQ(DRAW_SUCCESS, draw_result);
RenderSurfaceImpl* root_surface =
- host_impl->active_tree()->root_layer()->render_surface();
+ host_impl->active_tree()->root_layer_for_testing()->render_surface();
gfx::Rect root_damage =
root_surface->damage_tracker()->current_damage_rect();
root_damage.Intersect(root_surface->content_rect());
@@ -470,7 +470,7 @@ class LayerTreeHostDamageTestScrollbarCommitDoesNoDamage
DrawResult draw_result) override {
EXPECT_EQ(DRAW_SUCCESS, draw_result);
RenderSurfaceImpl* root_surface =
- host_impl->active_tree()->root_layer()->render_surface();
+ host_impl->active_tree()->root_layer_for_testing()->render_surface();
gfx::Rect root_damage =
root_surface->damage_tracker()->current_damage_rect();
root_damage.Intersect(root_surface->content_rect());
« no previous file with comments | « cc/trees/layer_tree_host_unittest_copyrequest.cc ('k') | cc/trees/layer_tree_host_unittest_occlusion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698