| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |