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

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

Issue 2112973003: cc: Add verify transform tree calculations to LayerTreeSettings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "TODO" Created 4 years, 5 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 host_impl->DrawTransform(), active_tree->device_scale_factor(), 112 host_impl->DrawTransform(), active_tree->device_scale_factor(),
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 can_render_to_separate_surface, 119 can_render_to_separate_surface,
120 host_impl->settings().layer_transforms_should_scale_layer_contents, 120 host_impl->settings().layer_transforms_should_scale_layer_contents,
121 false, // do not verify_clip_tree_calculation for perf tests 121 false, // do not verify_clip_tree_calculation for perf tests
122 false, // do not verify_transform_tree_calculation for perf tests
122 &update_list, active_tree->property_trees()); 123 &update_list, active_tree->property_trees());
123 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 124 LayerTreeHostCommon::CalculateDrawProperties(&inputs);
124 } 125 }
125 }; 126 };
126 127
127 class BspTreePerfTest : public CalcDrawPropsTest { 128 class BspTreePerfTest : public CalcDrawPropsTest {
128 public: 129 public:
129 BspTreePerfTest() : num_duplicates_(1) {} 130 BspTreePerfTest() : num_duplicates_(1) {}
130 void RunSortLayers() { RunTest(CompositorMode::SINGLE_THREADED, false); } 131 void RunSortLayers() { RunTest(CompositorMode::SINGLE_THREADED, false); }
131 132
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 247
247 TEST_F(BspTreePerfTest, BspTreeCubes_4) { 248 TEST_F(BspTreePerfTest, BspTreeCubes_4) {
248 SetTestName("bsp_tree_cubes_4"); 249 SetTestName("bsp_tree_cubes_4");
249 SetNumberOfDuplicates(4); 250 SetNumberOfDuplicates(4);
250 ReadTestFile("layer_sort_cubes"); 251 ReadTestFile("layer_sort_cubes");
251 RunSortLayers(); 252 RunSortLayers();
252 } 253 }
253 254
254 } // namespace 255 } // namespace
255 } // namespace cc 256 } // 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