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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2834123002: cc: Replace render surface layer list with a render surface list (Closed)
Patch Set: Address review comments Created 3 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_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index b31b02dc64b66ffae6fb1b04341aae2fb650e441..d4bed89b8b1a6d9e5205178fdedbc9c037c50c32 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -2586,14 +2586,13 @@ class LayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers
impl->PrepareToDraw(&frame_data);
impl->DidDrawAllLayers(frame_data);
- const LayerImplList& render_surface_layer_list =
- *frame_data.render_surface_layer_list;
+ const RenderSurfaceList& render_surface_list =
+ *frame_data.render_surface_list;
// Both layers should be drawing into the root render surface.
- ASSERT_EQ(1u, render_surface_layer_list.size());
- ASSERT_EQ(root->GetRenderSurface(),
- render_surface_layer_list[0]->GetRenderSurface());
- ASSERT_EQ(2u, root->GetRenderSurface()->layer_list().size());
+ ASSERT_EQ(1u, render_surface_list.size());
+ ASSERT_EQ(root->GetRenderSurface(), render_surface_list[0]);
+ ASSERT_EQ(2, root->GetRenderSurface()->num_contributors());
// The root render surface is the size of the viewport.
EXPECT_EQ(gfx::Rect(0, 0, 60, 60),
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698