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

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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 Layer* root_layer, 47 Layer* root_layer,
48 const Layer* page_scale_layer, 48 const Layer* page_scale_layer,
49 const Layer* inner_viewport_scroll_layer, 49 const Layer* inner_viewport_scroll_layer,
50 const Layer* outer_viewport_scroll_layer, 50 const Layer* outer_viewport_scroll_layer,
51 const Layer* overscroll_elasticity_layer, 51 const Layer* overscroll_elasticity_layer,
52 const gfx::Vector2dF& elastic_overscroll, 52 const gfx::Vector2dF& elastic_overscroll,
53 float page_scale_factor, 53 float page_scale_factor,
54 float device_scale_factor, 54 float device_scale_factor,
55 const gfx::Rect& viewport, 55 const gfx::Rect& viewport,
56 const gfx::Transform& device_transform, 56 const gfx::Transform& device_transform,
57 bool can_render_to_separate_surface, 57 PropertyTrees* property_trees);
58 PropertyTrees* property_trees,
59 LayerList* update_layer_list);
60 58
61 void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects( 59 void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects(
62 LayerImpl* root_layer, 60 LayerImpl* root_layer,
63 const LayerImpl* page_scale_layer, 61 const LayerImpl* page_scale_layer,
64 const LayerImpl* inner_viewport_scroll_layer, 62 const LayerImpl* inner_viewport_scroll_layer,
65 const LayerImpl* outer_viewport_scroll_layer, 63 const LayerImpl* outer_viewport_scroll_layer,
66 const LayerImpl* overscroll_elasticity_layer, 64 const LayerImpl* overscroll_elasticity_layer,
67 const gfx::Vector2dF& elastic_overscroll, 65 const gfx::Vector2dF& elastic_overscroll,
68 float page_scale_factor, 66 float page_scale_factor,
69 float device_scale_factor, 67 float device_scale_factor,
70 const gfx::Rect& viewport, 68 const gfx::Rect& viewport,
71 const gfx::Transform& device_transform, 69 const gfx::Transform& device_transform,
72 bool can_render_to_separate_surface, 70 bool can_render_to_separate_surface,
73 PropertyTrees* property_trees, 71 PropertyTrees* property_trees,
74 LayerImplList* visible_layer_list); 72 LayerImplList* visible_layer_list);
75 73
76 void CC_EXPORT ComputeVisibleRects(Layer* root_layer, 74 void CC_EXPORT Update(Layer* root_layer,
jaydasika 2016/04/02 02:54:10 need to name this better :) It updates property tr
ajuma 2016/04/04 14:15:05 How about splitting this into three functions?
jaydasika 2016/04/04 18:41:09 Done.
77 PropertyTrees* property_trees, 75 PropertyTrees* property_trees,
78 bool can_render_to_separate_surface, 76 bool can_render_to_separate_surface,
79 LayerList* update_layer_list); 77 LayerList* update_layer_list);
78
79 void CC_EXPORT
80 ComputeVisibleRectsForTesting(PropertyTrees* property_trees,
81 bool can_render_to_separate_surface,
82 LayerList* visible_layer_list);
80 83
81 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, 84 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer,
82 PropertyTrees* property_trees, 85 PropertyTrees* property_trees,
83 bool can_render_to_separate_surface, 86 bool can_render_to_separate_surface,
84 LayerImplList* visible_layer_list); 87 LayerImplList* visible_layer_list);
85 88
86 void CC_EXPORT ComputeLayerDrawProperties(LayerImpl* layer, 89 void CC_EXPORT ComputeLayerDrawProperties(LayerImpl* layer,
87 const PropertyTrees* property_trees, 90 const PropertyTrees* property_trees,
88 bool layers_always_allowed_lcd_text, 91 bool layers_always_allowed_lcd_text,
89 bool can_use_lcd_text); 92 bool can_use_lcd_text);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 125
123 void CC_EXPORT 126 void CC_EXPORT
124 UpdateElasticOverscroll(PropertyTrees* property_trees, 127 UpdateElasticOverscroll(PropertyTrees* property_trees,
125 const Layer* overscroll_elasticity_layer, 128 const Layer* overscroll_elasticity_layer,
126 const gfx::Vector2dF& elastic_overscroll); 129 const gfx::Vector2dF& elastic_overscroll);
127 130
128 } // namespace draw_property_utils 131 } // namespace draw_property_utils
129 } // namespace cc 132 } // namespace cc
130 133
131 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ 134 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698