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 "cc/trees/layer_tree_host_common.h" | 5 #include "cc/trees/layer_tree_host_common.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 140 } |
141 | 141 |
142 void DoCalcDrawPropertiesImpl(bool can_render_to_separate_surface, | 142 void DoCalcDrawPropertiesImpl(bool can_render_to_separate_surface, |
143 int max_texture_size, | 143 int max_texture_size, |
144 LayerTreeImpl* active_tree, | 144 LayerTreeImpl* active_tree, |
145 LayerTreeHostImpl* host_impl) { | 145 LayerTreeHostImpl* host_impl) { |
146 LayerImplList update_list; | 146 LayerImplList update_list; |
147 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs( | 147 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs( |
148 active_tree->root_layer(), active_tree->DrawViewportSize(), | 148 active_tree->root_layer(), active_tree->DrawViewportSize(), |
149 host_impl->DrawTransform(), active_tree->device_scale_factor(), | 149 host_impl->DrawTransform(), active_tree->device_scale_factor(), |
150 active_tree->total_page_scale_factor(), | 150 active_tree->current_page_scale_factor(), |
151 active_tree->InnerViewportContainerLayer(), max_texture_size, | 151 active_tree->InnerViewportContainerLayer(), max_texture_size, |
152 host_impl->settings().can_use_lcd_text, | 152 host_impl->settings().can_use_lcd_text, |
153 host_impl->settings().layers_always_allowed_lcd_text, | 153 host_impl->settings().layers_always_allowed_lcd_text, |
154 can_render_to_separate_surface, | 154 can_render_to_separate_surface, |
155 host_impl->settings().layer_transforms_should_scale_layer_contents, | 155 host_impl->settings().layer_transforms_should_scale_layer_contents, |
156 &update_list, 0); | 156 &update_list, 0); |
157 LayerTreeHostCommon::CalculateDrawProperties(&inputs); | 157 LayerTreeHostCommon::CalculateDrawProperties(&inputs); |
158 } | 158 } |
159 }; | 159 }; |
160 | 160 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 344 |
345 TEST_F(BspTreePerfTest, BspTreeCubes_4) { | 345 TEST_F(BspTreePerfTest, BspTreeCubes_4) { |
346 SetTestName("bsp_tree_cubes_4"); | 346 SetTestName("bsp_tree_cubes_4"); |
347 SetNumberOfDuplicates(4); | 347 SetNumberOfDuplicates(4); |
348 ReadTestFile("layer_sort_cubes"); | 348 ReadTestFile("layer_sort_cubes"); |
349 RunSortLayers(); | 349 RunSortLayers(); |
350 } | 350 } |
351 | 351 |
352 } // namespace | 352 } // namespace |
353 } // namespace cc | 353 } // namespace cc |
OLD | NEW |