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

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

Issue 783543003: Update from https://crrev.com/306901 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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.cc ('k') | cc/trees/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 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
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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698