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

Side by Side Diff: cc/output/bsp_tree_perftest.cc

Issue 2834123002: cc: Replace render surface layer list with a render surface list (Closed)
Patch Set: Address review comments Created 3 years, 7 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/layers/surface_layer_impl_unittest.cc ('k') | cc/test/layer_test_common.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <deque> 7 #include <deque>
8 #include <memory> 8 #include <memory>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 timer_.NextLap(); 101 timer_.NextLap();
102 } while (!timer_.HasTimeLimitExpired()); 102 } while (!timer_.HasTimeLimitExpired());
103 103
104 EndTest(); 104 EndTest();
105 } 105 }
106 106
107 void DoCalcDrawPropertiesImpl(bool can_render_to_separate_surface, 107 void DoCalcDrawPropertiesImpl(bool can_render_to_separate_surface,
108 int max_texture_size, 108 int max_texture_size,
109 LayerTreeImpl* active_tree, 109 LayerTreeImpl* active_tree,
110 LayerTreeHostImpl* host_impl) { 110 LayerTreeHostImpl* host_impl) {
111 LayerImplList update_list; 111 RenderSurfaceList update_list;
112 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs( 112 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs(
113 active_tree->root_layer_for_testing(), active_tree->DrawViewportSize(), 113 active_tree->root_layer_for_testing(), active_tree->DrawViewportSize(),
114 host_impl->DrawTransform(), active_tree->device_scale_factor(), 114 host_impl->DrawTransform(), active_tree->device_scale_factor(),
115 active_tree->current_page_scale_factor(), 115 active_tree->current_page_scale_factor(),
116 active_tree->InnerViewportContainerLayer(), 116 active_tree->InnerViewportContainerLayer(),
117 active_tree->InnerViewportScrollLayer(), 117 active_tree->InnerViewportScrollLayer(),
118 active_tree->OuterViewportScrollLayer(), 118 active_tree->OuterViewportScrollLayer(),
119 active_tree->elastic_overscroll()->Current(active_tree->IsActiveTree()), 119 active_tree->elastic_overscroll()->Current(active_tree->IsActiveTree()),
120 active_tree->OverscrollElasticityLayer(), max_texture_size, 120 active_tree->OverscrollElasticityLayer(), max_texture_size,
121 can_render_to_separate_surface, 121 can_render_to_separate_surface,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 TEST_F(BspTreePerfTest, BspTreeCubes_4) { 183 TEST_F(BspTreePerfTest, BspTreeCubes_4) {
184 SetTestName("bsp_tree_cubes_4"); 184 SetTestName("bsp_tree_cubes_4");
185 SetNumberOfDuplicates(4); 185 SetNumberOfDuplicates(4);
186 ReadTestFile("layer_sort_cubes"); 186 ReadTestFile("layer_sort_cubes");
187 RunTest(CompositorMode::SINGLE_THREADED); 187 RunTest(CompositorMode::SINGLE_THREADED);
188 } 188 }
189 189
190 } // namespace 190 } // namespace
191 } // namespace cc 191 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/surface_layer_impl_unittest.cc ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698