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

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

Issue 2865703002: Remove LayerTreeHostImpl::DrawViewportSize(). (Closed)
Patch Set: Created 3 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/output/bsp_tree_perftest.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 <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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 EndTest(); 99 EndTest();
100 } 100 }
101 101
102 void DoCalcDrawPropertiesImpl(bool can_render_to_separate_surface, 102 void DoCalcDrawPropertiesImpl(bool can_render_to_separate_surface,
103 int max_texture_size, 103 int max_texture_size,
104 LayerTreeImpl* active_tree, 104 LayerTreeImpl* active_tree,
105 LayerTreeHostImpl* host_impl) { 105 LayerTreeHostImpl* host_impl) {
106 RenderSurfaceList update_list; 106 RenderSurfaceList update_list;
107 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs( 107 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs(
108 active_tree->root_layer_for_testing(), active_tree->DrawViewportSize(), 108 active_tree->root_layer_for_testing(),
109 host_impl->DrawTransform(), active_tree->device_scale_factor(), 109 active_tree->DeviceViewport().size(), host_impl->DrawTransform(),
110 active_tree->device_scale_factor(),
110 active_tree->current_page_scale_factor(), 111 active_tree->current_page_scale_factor(),
111 active_tree->InnerViewportContainerLayer(), 112 active_tree->InnerViewportContainerLayer(),
112 active_tree->InnerViewportScrollLayer(), 113 active_tree->InnerViewportScrollLayer(),
113 active_tree->OuterViewportScrollLayer(), 114 active_tree->OuterViewportScrollLayer(),
114 active_tree->elastic_overscroll()->Current(active_tree->IsActiveTree()), 115 active_tree->elastic_overscroll()->Current(active_tree->IsActiveTree()),
115 active_tree->OverscrollElasticityLayer(), max_texture_size, 116 active_tree->OverscrollElasticityLayer(), max_texture_size,
116 can_render_to_separate_surface, 117 can_render_to_separate_surface,
117 host_impl->settings().layer_transforms_should_scale_layer_contents, 118 host_impl->settings().layer_transforms_should_scale_layer_contents,
118 &update_list, active_tree->property_trees()); 119 &update_list, active_tree->property_trees());
119 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 120 LayerTreeHostCommon::CalculateDrawProperties(&inputs);
(...skipping 19 matching lines...) Expand all
139 } 140 }
140 141
141 TEST_F(CalcDrawPropsTest, TouchRegionHeavy) { 142 TEST_F(CalcDrawPropsTest, TouchRegionHeavy) {
142 SetTestName("touch_region_heavy"); 143 SetTestName("touch_region_heavy");
143 ReadTestFile("touch_region_heavy"); 144 ReadTestFile("touch_region_heavy");
144 RunCalcDrawProps(); 145 RunCalcDrawProps();
145 } 146 }
146 147
147 } // namespace 148 } // namespace
148 } // namespace cc 149 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/bsp_tree_perftest.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698