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

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

Issue 1855013002: cc : Stop calculating visible rects on main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/test/layer_tree_host_common_test.cc ('k') | cc/trees/draw_property_utils.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 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 22 matching lines...) Expand all
33 const TransformTree& transform_tree, 33 const TransformTree& transform_tree,
34 bool non_root_surfaces_enabled); 34 bool non_root_surfaces_enabled);
35 35
36 // Computes combined (screen space) transforms for every node in the transform 36 // Computes combined (screen space) transforms for every node in the transform
37 // tree. This must be done prior to calling |ComputeClips|. 37 // tree. This must be done prior to calling |ComputeClips|.
38 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree); 38 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree);
39 39
40 // Computes screen space opacity for every node in the opacity tree. 40 // Computes screen space opacity for every node in the opacity tree.
41 void CC_EXPORT ComputeEffects(EffectTree* effect_tree); 41 void CC_EXPORT ComputeEffects(EffectTree* effect_tree);
42 42
43 // Computes the visible content rect for every layer under |root_layer|. The
44 // visible content rect is the clipped content space rect that will be used for
45 // recording.
46 void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects(
47 Layer* root_layer,
48 const Layer* page_scale_layer,
49 const Layer* inner_viewport_scroll_layer,
50 const Layer* outer_viewport_scroll_layer,
51 const Layer* overscroll_elasticity_layer,
52 const gfx::Vector2dF& elastic_overscroll,
53 float page_scale_factor,
54 float device_scale_factor,
55 const gfx::Rect& viewport,
56 const gfx::Transform& device_transform,
57 bool can_render_to_separate_surface,
58 PropertyTrees* property_trees,
59 LayerList* update_layer_list);
60
61 void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects( 43 void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects(
62 LayerImpl* root_layer, 44 LayerImpl* root_layer,
63 const LayerImpl* page_scale_layer, 45 const LayerImpl* page_scale_layer,
64 const LayerImpl* inner_viewport_scroll_layer, 46 const LayerImpl* inner_viewport_scroll_layer,
65 const LayerImpl* outer_viewport_scroll_layer, 47 const LayerImpl* outer_viewport_scroll_layer,
66 const LayerImpl* overscroll_elasticity_layer, 48 const LayerImpl* overscroll_elasticity_layer,
67 const gfx::Vector2dF& elastic_overscroll, 49 const gfx::Vector2dF& elastic_overscroll,
68 float page_scale_factor, 50 float page_scale_factor,
69 float device_scale_factor, 51 float device_scale_factor,
70 const gfx::Rect& viewport, 52 const gfx::Rect& viewport,
71 const gfx::Transform& device_transform, 53 const gfx::Transform& device_transform,
72 bool can_render_to_separate_surface, 54 bool can_render_to_separate_surface,
73 PropertyTrees* property_trees, 55 PropertyTrees* property_trees,
74 LayerImplList* visible_layer_list); 56 LayerImplList* visible_layer_list);
75 57
76 void CC_EXPORT ComputeVisibleRects(Layer* root_layer, 58 void CC_EXPORT UpdateRenderSurfaces(Layer* root_layer,
77 PropertyTrees* property_trees, 59 PropertyTrees* property_trees);
78 bool can_render_to_separate_surface, 60
79 LayerList* update_layer_list); 61 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees,
62 bool can_render_to_separate_surface);
63
64 void CC_EXPORT FindLayersThatNeedUpdates(Layer* layer,
65 const TransformTree& transform_tree,
66 const EffectTree& effect_tree,
67 LayerList* update_layer_list);
68
69 void CC_EXPORT
70 ComputeVisibleRectsForTesting(PropertyTrees* property_trees,
71 bool can_render_to_separate_surface,
72 LayerList* visible_layer_list);
80 73
81 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, 74 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer,
82 PropertyTrees* property_trees, 75 PropertyTrees* property_trees,
83 bool can_render_to_separate_surface, 76 bool can_render_to_separate_surface,
84 LayerImplList* visible_layer_list); 77 LayerImplList* visible_layer_list);
85 78
86 void CC_EXPORT ComputeLayerDrawProperties(LayerImpl* layer, 79 void CC_EXPORT ComputeLayerDrawProperties(LayerImpl* layer,
87 const PropertyTrees* property_trees, 80 const PropertyTrees* property_trees,
88 bool layers_always_allowed_lcd_text, 81 bool layers_always_allowed_lcd_text,
89 bool can_use_lcd_text); 82 bool can_use_lcd_text);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 115
123 void CC_EXPORT 116 void CC_EXPORT
124 UpdateElasticOverscroll(PropertyTrees* property_trees, 117 UpdateElasticOverscroll(PropertyTrees* property_trees,
125 const Layer* overscroll_elasticity_layer, 118 const Layer* overscroll_elasticity_layer,
126 const gfx::Vector2dF& elastic_overscroll); 119 const gfx::Vector2dF& elastic_overscroll);
127 120
128 } // namespace draw_property_utils 121 } // namespace draw_property_utils
129 } // namespace cc 122 } // namespace cc
130 123
131 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ 124 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_host_common_test.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698