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

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

Issue 816543004: Update from https://crrev.com/308996 (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_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 27 matching lines...) Expand all
38 float device_scale_factor, 38 float device_scale_factor,
39 float page_scale_factor, 39 float page_scale_factor,
40 const LayerType* page_scale_application_layer, 40 const LayerType* page_scale_application_layer,
41 const gfx::Vector2dF& elastic_overscroll, 41 const gfx::Vector2dF& elastic_overscroll,
42 const LayerType* elastic_overscroll_application_layer, 42 const LayerType* elastic_overscroll_application_layer,
43 int max_texture_size, 43 int max_texture_size,
44 bool can_use_lcd_text, 44 bool can_use_lcd_text,
45 bool layers_always_allowed_lcd_text, 45 bool layers_always_allowed_lcd_text,
46 bool can_render_to_separate_surface, 46 bool can_render_to_separate_surface,
47 bool can_adjust_raster_scales, 47 bool can_adjust_raster_scales,
48 bool verify_property_trees,
48 RenderSurfaceLayerListType* render_surface_layer_list, 49 RenderSurfaceLayerListType* render_surface_layer_list,
49 int current_render_surface_layer_list_id) 50 int current_render_surface_layer_list_id)
50 : root_layer(root_layer), 51 : root_layer(root_layer),
51 device_viewport_size(device_viewport_size), 52 device_viewport_size(device_viewport_size),
52 device_transform(device_transform), 53 device_transform(device_transform),
53 device_scale_factor(device_scale_factor), 54 device_scale_factor(device_scale_factor),
54 page_scale_factor(page_scale_factor), 55 page_scale_factor(page_scale_factor),
55 page_scale_application_layer(page_scale_application_layer), 56 page_scale_application_layer(page_scale_application_layer),
56 elastic_overscroll(elastic_overscroll), 57 elastic_overscroll(elastic_overscroll),
57 elastic_overscroll_application_layer( 58 elastic_overscroll_application_layer(
58 elastic_overscroll_application_layer), 59 elastic_overscroll_application_layer),
59 max_texture_size(max_texture_size), 60 max_texture_size(max_texture_size),
60 can_use_lcd_text(can_use_lcd_text), 61 can_use_lcd_text(can_use_lcd_text),
61 layers_always_allowed_lcd_text(layers_always_allowed_lcd_text), 62 layers_always_allowed_lcd_text(layers_always_allowed_lcd_text),
62 can_render_to_separate_surface(can_render_to_separate_surface), 63 can_render_to_separate_surface(can_render_to_separate_surface),
63 can_adjust_raster_scales(can_adjust_raster_scales), 64 can_adjust_raster_scales(can_adjust_raster_scales),
65 verify_property_trees(verify_property_trees),
64 render_surface_layer_list(render_surface_layer_list), 66 render_surface_layer_list(render_surface_layer_list),
65 current_render_surface_layer_list_id( 67 current_render_surface_layer_list_id(
66 current_render_surface_layer_list_id) {} 68 current_render_surface_layer_list_id) {}
67 69
68 LayerType* root_layer; 70 LayerType* root_layer;
69 gfx::Size device_viewport_size; 71 gfx::Size device_viewport_size;
70 const gfx::Transform& device_transform; 72 const gfx::Transform& device_transform;
71 float device_scale_factor; 73 float device_scale_factor;
72 float page_scale_factor; 74 float page_scale_factor;
73 const LayerType* page_scale_application_layer; 75 const LayerType* page_scale_application_layer;
74 gfx::Vector2dF elastic_overscroll; 76 gfx::Vector2dF elastic_overscroll;
75 const LayerType* elastic_overscroll_application_layer; 77 const LayerType* elastic_overscroll_application_layer;
76 int max_texture_size; 78 int max_texture_size;
77 bool can_use_lcd_text; 79 bool can_use_lcd_text;
78 bool layers_always_allowed_lcd_text; 80 bool layers_always_allowed_lcd_text;
79 bool can_render_to_separate_surface; 81 bool can_render_to_separate_surface;
80 bool can_adjust_raster_scales; 82 bool can_adjust_raster_scales;
83 bool verify_property_trees;
81 RenderSurfaceLayerListType* render_surface_layer_list; 84 RenderSurfaceLayerListType* render_surface_layer_list;
82 int current_render_surface_layer_list_id; 85 int current_render_surface_layer_list_id;
83 }; 86 };
84 87
85 template <typename LayerType, typename RenderSurfaceLayerListType> 88 template <typename LayerType, typename RenderSurfaceLayerListType>
86 struct CalcDrawPropsInputsForTesting 89 struct CalcDrawPropsInputsForTesting
87 : public CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType> { 90 : public CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType> {
88 CalcDrawPropsInputsForTesting( 91 CalcDrawPropsInputsForTesting(
89 LayerType* root_layer, 92 LayerType* root_layer,
90 const gfx::Size& device_viewport_size, 93 const gfx::Size& device_viewport_size,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 1.f, 234 1.f,
232 1.f, 235 1.f,
233 NULL, 236 NULL,
234 gfx::Vector2dF(), 237 gfx::Vector2dF(),
235 NULL, 238 NULL,
236 std::numeric_limits<int>::max() / 2, 239 std::numeric_limits<int>::max() / 2,
237 false, 240 false,
238 false, 241 false,
239 true, 242 true,
240 false, 243 false,
244 true,
241 render_surface_layer_list, 245 render_surface_layer_list,
242 0) { 246 0) {
243 DCHECK(root_layer); 247 DCHECK(root_layer);
244 DCHECK(render_surface_layer_list); 248 DCHECK(render_surface_layer_list);
245 } 249 }
246 250
247 template <typename LayerType, typename RenderSurfaceLayerListType> 251 template <typename LayerType, typename RenderSurfaceLayerListType>
248 LayerTreeHostCommon::CalcDrawPropsInputsForTesting<LayerType, 252 LayerTreeHostCommon::CalcDrawPropsInputsForTesting<LayerType,
249 RenderSurfaceLayerListType>:: 253 RenderSurfaceLayerListType>::
250 CalcDrawPropsInputsForTesting( 254 CalcDrawPropsInputsForTesting(
251 LayerType* root_layer, 255 LayerType* root_layer,
252 const gfx::Size& device_viewport_size, 256 const gfx::Size& device_viewport_size,
253 RenderSurfaceLayerListType* render_surface_layer_list) 257 RenderSurfaceLayerListType* render_surface_layer_list)
254 : CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType>( 258 : CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType>(
255 root_layer, 259 root_layer,
256 device_viewport_size, 260 device_viewport_size,
257 identity_transform_, 261 identity_transform_,
258 1.f, 262 1.f,
259 1.f, 263 1.f,
260 NULL, 264 NULL,
261 gfx::Vector2dF(), 265 gfx::Vector2dF(),
262 NULL, 266 NULL,
263 std::numeric_limits<int>::max() / 2, 267 std::numeric_limits<int>::max() / 2,
264 false, 268 false,
265 false, 269 false,
266 true, 270 true,
267 false, 271 false,
272 true,
268 render_surface_layer_list, 273 render_surface_layer_list,
269 0) { 274 0) {
270 DCHECK(root_layer); 275 DCHECK(root_layer);
271 DCHECK(render_surface_layer_list); 276 DCHECK(render_surface_layer_list);
272 } 277 }
273 278
274 } // namespace cc 279 } // namespace cc
275 280
276 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 281 #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