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

Side by Side Diff: cc/trees/layer_tree_host_common.h

Issue 548963002: Generalize scroll parent work in CalculateDrawProperties Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 2 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.cc ('k') | cc/trees/layer_tree_host_common.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_
6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 device_viewport_size, 218 device_viewport_size,
219 device_transform, 219 device_transform,
220 1.f, 220 1.f,
221 1.f, 221 1.f,
222 NULL, 222 NULL,
223 std::numeric_limits<int>::max() / 2, 223 std::numeric_limits<int>::max() / 2,
224 false, 224 false,
225 true, 225 true,
226 false, 226 false,
227 render_surface_layer_list, 227 render_surface_layer_list,
228 0) { 228 1) {
229 DCHECK(root_layer); 229 DCHECK(root_layer);
230 DCHECK(render_surface_layer_list); 230 DCHECK(render_surface_layer_list);
231 } 231 }
232 232
233 template <typename LayerType, typename RenderSurfaceLayerListType> 233 template <typename LayerType, typename RenderSurfaceLayerListType>
234 LayerTreeHostCommon::CalcDrawPropsInputsForTesting<LayerType, 234 LayerTreeHostCommon::CalcDrawPropsInputsForTesting<LayerType,
235 RenderSurfaceLayerListType>:: 235 RenderSurfaceLayerListType>::
236 CalcDrawPropsInputsForTesting( 236 CalcDrawPropsInputsForTesting(
237 LayerType* root_layer, 237 LayerType* root_layer,
238 const gfx::Size& device_viewport_size, 238 const gfx::Size& device_viewport_size,
239 RenderSurfaceLayerListType* render_surface_layer_list) 239 RenderSurfaceLayerListType* render_surface_layer_list)
240 : CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType>( 240 : CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType>(
241 root_layer, 241 root_layer,
242 device_viewport_size, 242 device_viewport_size,
243 identity_transform_, 243 identity_transform_,
244 1.f, 244 1.f,
245 1.f, 245 1.f,
246 NULL, 246 NULL,
247 std::numeric_limits<int>::max() / 2, 247 std::numeric_limits<int>::max() / 2,
248 false, 248 false,
249 true, 249 true,
250 false, 250 false,
251 render_surface_layer_list, 251 render_surface_layer_list,
252 0) { 252 1) {
253 DCHECK(root_layer); 253 DCHECK(root_layer);
254 DCHECK(render_surface_layer_list); 254 DCHECK(render_surface_layer_list);
255 } 255 }
256 256
257 } // namespace cc 257 } // namespace cc
258 258
259 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 259 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698