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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/draw_property_utils.h
diff --git a/cc/trees/draw_property_utils.h b/cc/trees/draw_property_utils.h
index 913234a9324c976edd7a94af7c5fea5218d61c34..a78f810c08b902bc09a8e4ae1c62c4471c596524 100644
--- a/cc/trees/draw_property_utils.h
+++ b/cc/trees/draw_property_utils.h
@@ -40,24 +40,6 @@ void CC_EXPORT ComputeTransforms(TransformTree* transform_tree);
// Computes screen space opacity for every node in the opacity tree.
void CC_EXPORT ComputeEffects(EffectTree* effect_tree);
-// Computes the visible content rect for every layer under |root_layer|. The
-// visible content rect is the clipped content space rect that will be used for
-// recording.
-void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects(
- Layer* root_layer,
- const Layer* page_scale_layer,
- const Layer* inner_viewport_scroll_layer,
- const Layer* outer_viewport_scroll_layer,
- const Layer* overscroll_elasticity_layer,
- const gfx::Vector2dF& elastic_overscroll,
- float page_scale_factor,
- float device_scale_factor,
- const gfx::Rect& viewport,
- const gfx::Transform& device_transform,
- bool can_render_to_separate_surface,
- PropertyTrees* property_trees,
- LayerList* update_layer_list);
-
void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects(
LayerImpl* root_layer,
const LayerImpl* page_scale_layer,
@@ -73,10 +55,21 @@ void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects(
PropertyTrees* property_trees,
LayerImplList* visible_layer_list);
-void CC_EXPORT ComputeVisibleRects(Layer* root_layer,
- PropertyTrees* property_trees,
- bool can_render_to_separate_surface,
- LayerList* update_layer_list);
+void CC_EXPORT UpdateRenderSurfaces(Layer* root_layer,
+ PropertyTrees* property_trees);
+
+void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees,
+ bool can_render_to_separate_surface);
+
+void CC_EXPORT FindLayersThatNeedUpdates(Layer* layer,
+ const TransformTree& transform_tree,
+ const EffectTree& effect_tree,
+ LayerList* update_layer_list);
+
+void CC_EXPORT
+ComputeVisibleRectsForTesting(PropertyTrees* property_trees,
+ bool can_render_to_separate_surface,
+ LayerList* visible_layer_list);
void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer,
PropertyTrees* property_trees,
« 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