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

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

Issue 2655233006: cc : Clean up cc clip tree (Closed)
Patch Set: blink_tests Created 3 years, 9 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 float device_scale_factor, 67 float device_scale_factor,
68 float page_scale_factor, 68 float page_scale_factor,
69 const LayerImpl* page_scale_layer, 69 const LayerImpl* page_scale_layer,
70 const LayerImpl* inner_viewport_scroll_layer, 70 const LayerImpl* inner_viewport_scroll_layer,
71 const LayerImpl* outer_viewport_scroll_layer, 71 const LayerImpl* outer_viewport_scroll_layer,
72 const gfx::Vector2dF& elastic_overscroll, 72 const gfx::Vector2dF& elastic_overscroll,
73 const LayerImpl* elastic_overscroll_application_layer, 73 const LayerImpl* elastic_overscroll_application_layer,
74 int max_texture_size, 74 int max_texture_size,
75 bool can_render_to_separate_surface, 75 bool can_render_to_separate_surface,
76 bool can_adjust_raster_scales, 76 bool can_adjust_raster_scales,
77 bool verify_clip_tree_calculations,
78 bool verify_visible_rect_calculations,
79 LayerImplList* render_surface_layer_list, 77 LayerImplList* render_surface_layer_list,
80 PropertyTrees* property_trees); 78 PropertyTrees* property_trees);
81 79
82 LayerImpl* root_layer; 80 LayerImpl* root_layer;
83 gfx::Size device_viewport_size; 81 gfx::Size device_viewport_size;
84 gfx::Transform device_transform; 82 gfx::Transform device_transform;
85 float device_scale_factor; 83 float device_scale_factor;
86 float page_scale_factor; 84 float page_scale_factor;
87 const LayerImpl* page_scale_layer; 85 const LayerImpl* page_scale_layer;
88 const LayerImpl* inner_viewport_scroll_layer; 86 const LayerImpl* inner_viewport_scroll_layer;
89 const LayerImpl* outer_viewport_scroll_layer; 87 const LayerImpl* outer_viewport_scroll_layer;
90 gfx::Vector2dF elastic_overscroll; 88 gfx::Vector2dF elastic_overscroll;
91 const LayerImpl* elastic_overscroll_application_layer; 89 const LayerImpl* elastic_overscroll_application_layer;
92 int max_texture_size; 90 int max_texture_size;
93 bool can_render_to_separate_surface; 91 bool can_render_to_separate_surface;
94 bool can_adjust_raster_scales; 92 bool can_adjust_raster_scales;
95 bool verify_clip_tree_calculations;
96 bool verify_visible_rect_calculations;
97 LayerImplList* render_surface_layer_list; 93 LayerImplList* render_surface_layer_list;
98 PropertyTrees* property_trees; 94 PropertyTrees* property_trees;
99 }; 95 };
100 96
101 struct CC_EXPORT CalcDrawPropsImplInputsForTesting 97 struct CC_EXPORT CalcDrawPropsImplInputsForTesting
102 : public CalcDrawPropsImplInputs { 98 : public CalcDrawPropsImplInputs {
103 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, 99 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer,
104 const gfx::Size& device_viewport_size, 100 const gfx::Size& device_viewport_size,
105 const gfx::Transform& device_transform, 101 const gfx::Transform& device_transform,
106 float device_scale_factor, 102 float device_scale_factor,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 function(tree_impl->LayerById(id)); 198 function(tree_impl->LayerById(id));
203 } 199 }
204 } 200 }
205 201
206 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); 202 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer);
207 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); 203 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer);
208 204
209 } // namespace cc 205 } // namespace cc
210 206
211 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 207 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698