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

Unified Diff: cc/trees/draw_property_utils.h

Issue 1387003002: cc: Make property trees support resourceless draw mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DontReparentUnclippedClipNodes
Patch Set: Rebased Created 5 years, 2 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 858f0fce7688fce21d741e3023c8d17393376371..13dc9ae1af97f2bf550d2fa41901679066f18ee4 100644
--- a/cc/trees/draw_property_utils.h
+++ b/cc/trees/draw_property_utils.h
@@ -27,10 +27,9 @@ class PropertyTrees;
// Computes combined clips for every node in |clip_tree|. This function requires
// that |transform_tree| has been updated via |ComputeTransforms|.
-// TODO(vollick): ComputeClips and ComputeTransforms will eventually need to be
-// done on both threads.
-void CC_EXPORT
-ComputeClips(ClipTree* clip_tree, const TransformTree& transform_tree);
+void CC_EXPORT ComputeClips(ClipTree* clip_tree,
+ const TransformTree& transform_tree,
+ bool non_root_surfaces_enabled);
// Computes combined (screen space) transforms for every node in the transform
// tree. This must be done prior to calling |ComputeClips|.
@@ -51,6 +50,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);
@@ -63,17 +63,20 @@ 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,
LayerImplList* update_layer_list);
void CC_EXPORT
ComputeVisibleRectsUsingPropertyTrees(Layer* root_layer,
PropertyTrees* property_trees,
+ bool can_render_to_separate_surface,
LayerList* update_layer_list);
void CC_EXPORT
ComputeVisibleRectsUsingPropertyTrees(LayerImpl* root_layer,
PropertyTrees* property_trees,
+ bool can_render_to_separate_surface,
LayerImplList* update_layer_list);
void CC_EXPORT ComputeLayerDrawPropertiesUsingPropertyTrees(
« 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