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

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

Issue 2334003003: cc : Compute visible rects dynamically (1) (Closed)
Patch Set: comment Created 4 years, 3 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 | « no previous file | cc/test/fake_layer_tree_host_impl.h » ('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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
122 host_impl->settings().layer_transforms_should_scale_layer_contents, 122 host_impl->settings().layer_transforms_should_scale_layer_contents,
123 false, // do not verify_clip_tree_calculation for perf tests 123 false, // do not verify_clip_tree_calculation for perf tests
124 false, // do not verify_visible_rect_calculation for perf tests
124 false, // do not verify_transform_tree_calculation for perf tests 125 false, // do not verify_transform_tree_calculation for perf tests
125 &update_list, active_tree->property_trees()); 126 &update_list, active_tree->property_trees());
126 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 127 LayerTreeHostCommon::CalculateDrawProperties(&inputs);
127 } 128 }
128 129
129 void BuildLayerImplList(LayerImpl* layer, LayerImplList* list) { 130 void BuildLayerImplList(LayerImpl* layer, LayerImplList* list) {
130 for (auto* layer_impl : *layer->layer_tree_impl()) { 131 for (auto* layer_impl : *layer->layer_tree_impl()) {
131 if (layer_impl->Is3dSorted() && !layer_impl->bounds().IsEmpty()) { 132 if (layer_impl->Is3dSorted() && !layer_impl->bounds().IsEmpty()) {
132 list->push_back(layer_impl); 133 list->push_back(layer_impl);
133 } 134 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 185
185 TEST_F(BspTreePerfTest, BspTreeCubes_4) { 186 TEST_F(BspTreePerfTest, BspTreeCubes_4) {
186 SetTestName("bsp_tree_cubes_4"); 187 SetTestName("bsp_tree_cubes_4");
187 SetNumberOfDuplicates(4); 188 SetNumberOfDuplicates(4);
188 ReadTestFile("layer_sort_cubes"); 189 ReadTestFile("layer_sort_cubes");
189 RunTest(CompositorMode::SINGLE_THREADED); 190 RunTest(CompositorMode::SINGLE_THREADED);
190 } 191 }
191 192
192 } // namespace 193 } // namespace
193 } // namespace cc 194 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/test/fake_layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698