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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2822303003: cc : Compute subtree has copy requests before property tree building (Closed)
Patch Set: . Created 3 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
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index 27eb425da9995d22ce9b3ac02f1f37b16c99cbdf..def7acef37bf1d26f1a09f4319d52b80c9f74ecf 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -458,8 +458,7 @@ static inline bool LayerShouldBeSkippedInternal(
transform_tree.Node(layer->transform_tree_index());
const EffectNode* effect_node = effect_tree.Node(layer->effect_tree_index());
- if (effect_node->has_render_surface &&
- effect_node->num_copy_requests_in_subtree > 0)
+ if (effect_node->has_render_surface && effect_node->subtree_has_copy_request)
weiliangc 2017/04/19 17:58:48 If subtree_has_copy_request is only useful here, w
jaydasika 2017/04/19 18:15:14 I want to stop creating effect nodes for handling
weiliangc 2017/04/19 21:21:54 If we want to avoid sending those layers over, cou
jaydasika 2017/04/19 21:31:36 Yes, that's the plan I have in mind : skip these l
return false;
// If the layer transform is not invertible, it should be skipped.
// TODO(ajuma): Correctly process subtrees with singular transform for the

Powered by Google App Engine
This is Rietveld 408576698