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

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

Issue 1800923002: cc: Directly use property trees to calculate clip rect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add setting to only calculate and verify in cc_unittest Created 4 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const LayerImpl* page_scale_layer, 74 const LayerImpl* page_scale_layer,
75 const LayerImpl* inner_viewport_scroll_layer, 75 const LayerImpl* inner_viewport_scroll_layer,
76 const LayerImpl* outer_viewport_scroll_layer, 76 const LayerImpl* outer_viewport_scroll_layer,
77 const gfx::Vector2dF& elastic_overscroll, 77 const gfx::Vector2dF& elastic_overscroll,
78 const LayerImpl* elastic_overscroll_application_layer, 78 const LayerImpl* elastic_overscroll_application_layer,
79 int max_texture_size, 79 int max_texture_size,
80 bool can_use_lcd_text, 80 bool can_use_lcd_text,
81 bool layers_always_allowed_lcd_text, 81 bool layers_always_allowed_lcd_text,
82 bool can_render_to_separate_surface, 82 bool can_render_to_separate_surface,
83 bool can_adjust_raster_scales, 83 bool can_adjust_raster_scales,
84 bool verify_clip_tree_calculations,
84 LayerImplList* render_surface_layer_list, 85 LayerImplList* render_surface_layer_list,
85 int current_render_surface_layer_list_id, 86 int current_render_surface_layer_list_id,
86 PropertyTrees* property_trees); 87 PropertyTrees* property_trees);
87 88
88 LayerImpl* root_layer; 89 LayerImpl* root_layer;
89 gfx::Size device_viewport_size; 90 gfx::Size device_viewport_size;
90 gfx::Transform device_transform; 91 gfx::Transform device_transform;
91 float device_scale_factor; 92 float device_scale_factor;
92 float page_scale_factor; 93 float page_scale_factor;
93 const LayerImpl* page_scale_layer; 94 const LayerImpl* page_scale_layer;
94 const LayerImpl* inner_viewport_scroll_layer; 95 const LayerImpl* inner_viewport_scroll_layer;
95 const LayerImpl* outer_viewport_scroll_layer; 96 const LayerImpl* outer_viewport_scroll_layer;
96 gfx::Vector2dF elastic_overscroll; 97 gfx::Vector2dF elastic_overscroll;
97 const LayerImpl* elastic_overscroll_application_layer; 98 const LayerImpl* elastic_overscroll_application_layer;
98 int max_texture_size; 99 int max_texture_size;
99 bool can_use_lcd_text; 100 bool can_use_lcd_text;
100 bool layers_always_allowed_lcd_text; 101 bool layers_always_allowed_lcd_text;
101 bool can_render_to_separate_surface; 102 bool can_render_to_separate_surface;
102 bool can_adjust_raster_scales; 103 bool can_adjust_raster_scales;
104 bool verify_clip_tree_calculations;
103 LayerImplList* render_surface_layer_list; 105 LayerImplList* render_surface_layer_list;
104 int current_render_surface_layer_list_id; 106 int current_render_surface_layer_list_id;
105 PropertyTrees* property_trees; 107 PropertyTrees* property_trees;
106 }; 108 };
107 109
108 struct CC_EXPORT CalcDrawPropsImplInputsForTesting 110 struct CC_EXPORT CalcDrawPropsImplInputsForTesting
109 : public CalcDrawPropsImplInputs { 111 : public CalcDrawPropsImplInputs {
110 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, 112 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer,
111 const gfx::Size& device_viewport_size, 113 const gfx::Size& device_viewport_size,
112 const gfx::Transform& device_transform, 114 const gfx::Transform& device_transform,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 function); 247 function);
246 } 248 }
247 } 249 }
248 250
249 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); 251 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer);
250 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); 252 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer);
251 253
252 } // namespace cc 254 } // namespace cc
253 255
254 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 256 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698