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

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

Issue 2834123002: cc: Replace render surface layer list with a render surface list (Closed)
Patch Set: Address review comments 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/trees/debug_rect_history.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 <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 LayerImplList* render_surface_layer_list, 77 RenderSurfaceList* render_surface_list,
78 PropertyTrees* property_trees); 78 PropertyTrees* property_trees);
79 79
80 LayerImpl* root_layer; 80 LayerImpl* root_layer;
81 gfx::Size device_viewport_size; 81 gfx::Size device_viewport_size;
82 gfx::Transform device_transform; 82 gfx::Transform device_transform;
83 float device_scale_factor; 83 float device_scale_factor;
84 float page_scale_factor; 84 float page_scale_factor;
85 const LayerImpl* page_scale_layer; 85 const LayerImpl* page_scale_layer;
86 const LayerImpl* inner_viewport_scroll_layer; 86 const LayerImpl* inner_viewport_scroll_layer;
87 const LayerImpl* outer_viewport_scroll_layer; 87 const LayerImpl* outer_viewport_scroll_layer;
88 gfx::Vector2dF elastic_overscroll; 88 gfx::Vector2dF elastic_overscroll;
89 const LayerImpl* elastic_overscroll_application_layer; 89 const LayerImpl* elastic_overscroll_application_layer;
90 int max_texture_size; 90 int max_texture_size;
91 bool can_render_to_separate_surface; 91 bool can_render_to_separate_surface;
92 bool can_adjust_raster_scales; 92 bool can_adjust_raster_scales;
93 LayerImplList* render_surface_layer_list; 93 RenderSurfaceList* render_surface_list;
94 PropertyTrees* property_trees; 94 PropertyTrees* property_trees;
95 }; 95 };
96 96
97 struct CC_EXPORT CalcDrawPropsImplInputsForTesting 97 struct CC_EXPORT CalcDrawPropsImplInputsForTesting
98 : public CalcDrawPropsImplInputs { 98 : public CalcDrawPropsImplInputs {
99 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, 99 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer,
100 const gfx::Size& device_viewport_size, 100 const gfx::Size& device_viewport_size,
101 const gfx::Transform& device_transform, 101 const gfx::Transform& device_transform,
102 float device_scale_factor, 102 float device_scale_factor,
103 LayerImplList* render_surface_layer_list); 103 RenderSurfaceList* render_surface_list);
104 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, 104 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer,
105 const gfx::Size& device_viewport_size, 105 const gfx::Size& device_viewport_size,
106 const gfx::Transform& device_transform, 106 const gfx::Transform& device_transform,
107 LayerImplList* render_surface_layer_list); 107 RenderSurfaceList* render_surface_list);
108 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, 108 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer,
109 const gfx::Size& device_viewport_size, 109 const gfx::Size& device_viewport_size,
110 LayerImplList* render_surface_layer_list); 110 RenderSurfaceList* render_surface_list);
111 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, 111 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer,
112 const gfx::Size& device_viewport_size, 112 const gfx::Size& device_viewport_size,
113 float device_scale_factor, 113 float device_scale_factor,
114 LayerImplList* render_surface_layer_list); 114 RenderSurfaceList* render_surface_list);
115 }; 115 };
116 116
117 static int CalculateLayerJitter(LayerImpl* scrolling_layer); 117 static int CalculateLayerJitter(LayerImpl* scrolling_layer);
118 static void CalculateDrawPropertiesForTesting( 118 static void CalculateDrawPropertiesForTesting(
119 CalcDrawPropsMainInputsForTesting* inputs); 119 CalcDrawPropsMainInputsForTesting* inputs);
120 120
121 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); 121 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs);
122 static void CalculateDrawPropertiesForTesting( 122 static void CalculateDrawPropertiesForTesting(
123 CalcDrawPropsImplInputsForTesting* inputs); 123 CalcDrawPropsImplInputsForTesting* inputs);
124 124
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 function(tree_impl->LayerById(id)); 200 function(tree_impl->LayerById(id));
201 } 201 }
202 } 202 }
203 203
204 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); 204 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer);
205 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); 205 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer);
206 206
207 } // namespace cc 207 } // namespace cc
208 208
209 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 209 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/trees/debug_rect_history.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698