OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DRAW_PROPERTY_UTILS_H_ | 5 #ifndef CC_TREES_DRAW_PROPERTY_UTILS_H_ |
6 #define CC_TREES_DRAW_PROPERTY_UTILS_H_ | 6 #define CC_TREES_DRAW_PROPERTY_UTILS_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/layers/layer_collections.h" | 9 #include "cc/layers/layer_collections.h" |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const LayerImpl* page_scale_layer, | 52 const LayerImpl* page_scale_layer, |
53 const LayerImpl* inner_viewport_scroll_layer, | 53 const LayerImpl* inner_viewport_scroll_layer, |
54 const LayerImpl* outer_viewport_scroll_layer, | 54 const LayerImpl* outer_viewport_scroll_layer, |
55 const LayerImpl* overscroll_elasticity_layer, | 55 const LayerImpl* overscroll_elasticity_layer, |
56 const gfx::Vector2dF& elastic_overscroll, | 56 const gfx::Vector2dF& elastic_overscroll, |
57 float page_scale_factor, | 57 float page_scale_factor, |
58 float device_scale_factor, | 58 float device_scale_factor, |
59 const gfx::Rect& viewport, | 59 const gfx::Rect& viewport, |
60 const gfx::Transform& device_transform, | 60 const gfx::Transform& device_transform, |
61 bool can_render_to_separate_surface, | 61 bool can_render_to_separate_surface, |
| 62 bool verify_visible_rect_calculations, |
62 PropertyTrees* property_trees, | 63 PropertyTrees* property_trees, |
63 LayerImplList* visible_layer_list); | 64 LayerImplList* visible_layer_list); |
64 | 65 |
65 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees, | 66 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees, |
66 bool can_render_to_separate_surface); | 67 bool can_render_to_separate_surface); |
67 | 68 |
68 void CC_EXPORT FindLayersThatNeedUpdates(LayerTree* layer_tree, | 69 void CC_EXPORT FindLayersThatNeedUpdates(LayerTree* layer_tree, |
69 const TransformTree& transform_tree, | 70 const TransformTree& transform_tree, |
70 const EffectTree& effect_tree, | 71 const EffectTree& effect_tree, |
71 LayerList* update_layer_list); | 72 LayerList* update_layer_list); |
72 | 73 |
73 void CC_EXPORT | 74 void CC_EXPORT |
74 ComputeVisibleRectsForTesting(PropertyTrees* property_trees, | 75 ComputeVisibleRectsForTesting(PropertyTrees* property_trees, |
75 bool can_render_to_separate_surface, | 76 bool can_render_to_separate_surface, |
76 LayerList* visible_layer_list); | 77 LayerList* visible_layer_list); |
77 | 78 |
78 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, | 79 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, |
79 PropertyTrees* property_trees, | 80 PropertyTrees* property_trees, |
80 bool can_render_to_separate_surface, | 81 bool can_render_to_separate_surface, |
| 82 bool verify_visible_rect_calculations, |
81 LayerImplList* visible_layer_list); | 83 LayerImplList* visible_layer_list); |
82 | 84 |
| 85 gfx::Rect CC_EXPORT |
| 86 ComputeLayerVisibleRectDynamic(const PropertyTrees* property_trees, |
| 87 const LayerImpl* layer); |
| 88 |
83 void CC_EXPORT ComputeLayerDrawProperties(LayerImpl* layer, | 89 void CC_EXPORT ComputeLayerDrawProperties(LayerImpl* layer, |
84 const PropertyTrees* property_trees); | 90 const PropertyTrees* property_trees); |
85 | 91 |
86 void CC_EXPORT ComputeMaskDrawProperties(LayerImpl* mask_layer, | 92 void CC_EXPORT ComputeMaskDrawProperties(LayerImpl* mask_layer, |
87 const PropertyTrees* property_trees); | 93 const PropertyTrees* property_trees); |
88 | 94 |
89 void CC_EXPORT ComputeSurfaceDrawProperties(const PropertyTrees* property_trees, | 95 void CC_EXPORT ComputeSurfaceDrawProperties(const PropertyTrees* property_trees, |
90 RenderSurfaceImpl* render_surface); | 96 RenderSurfaceImpl* render_surface); |
91 | 97 |
92 bool CC_EXPORT LayerShouldBeSkipped(LayerImpl* layer, | 98 bool CC_EXPORT LayerShouldBeSkipped(LayerImpl* layer, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 143 |
138 void CC_EXPORT | 144 void CC_EXPORT |
139 UpdateElasticOverscroll(PropertyTrees* property_trees, | 145 UpdateElasticOverscroll(PropertyTrees* property_trees, |
140 const Layer* overscroll_elasticity_layer, | 146 const Layer* overscroll_elasticity_layer, |
141 const gfx::Vector2dF& elastic_overscroll); | 147 const gfx::Vector2dF& elastic_overscroll); |
142 | 148 |
143 } // namespace draw_property_utils | 149 } // namespace draw_property_utils |
144 } // namespace cc | 150 } // namespace cc |
145 | 151 |
146 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ | 152 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ |
OLD | NEW |