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

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, 9 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
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..1859ff521352f3b7f7dda2dceb3c14bb8b4a9807 100644
--- a/cc/trees/draw_property_utils.h
+++ b/cc/trees/draw_property_utils.h
@@ -54,9 +54,7 @@ void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects(
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);
+ PropertyTrees* property_trees);
void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects(
LayerImpl* root_layer,
@@ -73,10 +71,15 @@ 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 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.
+ PropertyTrees* property_trees,
+ bool can_render_to_separate_surface,
+ 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,

Powered by Google App Engine
This is Rietveld 408576698