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

Side by Side Diff: cc/trees/layer_tree_host_common_perftest.cc

Issue 1800923002: cc: Directly use property trees to calculate clip rect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix perftests compile by not verify clip tree calc there Created 4 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/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_impl_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 active_tree->current_page_scale_factor(), 113 active_tree->current_page_scale_factor(),
114 active_tree->InnerViewportContainerLayer(), 114 active_tree->InnerViewportContainerLayer(),
115 active_tree->InnerViewportScrollLayer(), 115 active_tree->InnerViewportScrollLayer(),
116 active_tree->OuterViewportScrollLayer(), 116 active_tree->OuterViewportScrollLayer(),
117 active_tree->elastic_overscroll()->Current(active_tree->IsActiveTree()), 117 active_tree->elastic_overscroll()->Current(active_tree->IsActiveTree()),
118 active_tree->OverscrollElasticityLayer(), max_texture_size, 118 active_tree->OverscrollElasticityLayer(), max_texture_size,
119 host_impl->settings().can_use_lcd_text, 119 host_impl->settings().can_use_lcd_text,
120 host_impl->settings().layers_always_allowed_lcd_text, 120 host_impl->settings().layers_always_allowed_lcd_text,
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 &update_list, active_tree->property_trees()); 124 &update_list, active_tree->property_trees());
124 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 125 LayerTreeHostCommon::CalculateDrawProperties(&inputs);
125 } 126 }
126 }; 127 };
127 128
128 class BspTreePerfTest : public CalcDrawPropsTest { 129 class BspTreePerfTest : public CalcDrawPropsTest {
129 public: 130 public:
130 BspTreePerfTest() : num_duplicates_(1) {} 131 BspTreePerfTest() : num_duplicates_(1) {}
131 void RunSortLayers() { RunTest(CompositorMode::SINGLE_THREADED, false); } 132 void RunSortLayers() { RunTest(CompositorMode::SINGLE_THREADED, false); }
132 133
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 248
248 TEST_F(BspTreePerfTest, BspTreeCubes_4) { 249 TEST_F(BspTreePerfTest, BspTreeCubes_4) {
249 SetTestName("bsp_tree_cubes_4"); 250 SetTestName("bsp_tree_cubes_4");
250 SetNumberOfDuplicates(4); 251 SetNumberOfDuplicates(4);
251 ReadTestFile("layer_sort_cubes"); 252 ReadTestFile("layer_sort_cubes");
252 RunSortLayers(); 253 RunSortLayers();
253 } 254 }
254 255
255 } // namespace 256 } // namespace
256 } // namespace cc 257 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698