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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 1994213002: cc: Update effect_tree backface visibility when transform is updated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 a152ce0b839391bacab1770242d87ccd673ebe42..cbd252eb115cb7dbf14a9232250f54e04c9e10c5 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -788,8 +788,10 @@ void UpdatePropertyTrees(PropertyTrees* property_trees,
property_trees->non_root_surfaces_enabled = can_render_to_separate_surface;
property_trees->transform_tree.set_needs_update(true);
}
- if (property_trees->transform_tree.needs_update())
+ if (property_trees->transform_tree.needs_update()) {
property_trees->clip_tree.set_needs_update(true);
+ property_trees->effect_tree.set_needs_update(true);
jaydasika 2016/05/19 17:07:58 I think it will be better if we call set_needs_upd
ajuma 2016/05/19 17:18:14 That's a good point. If we did that, we'd also hav
Peter Mayo 2016/05/19 17:33:20 It is not true that a translation can never change
jaydasika 2016/05/19 17:52:18 Ya, we will need to consider perspective also.
jaydasika 2016/05/19 17:52:18 Agreed, we should do the simple thing as this need
sunxd 2016/05/19 17:59:56 Yes, we can discuss about that after this CL.
+ }
ComputeTransforms(&property_trees->transform_tree);
ComputeClips(&property_trees->clip_tree, property_trees->transform_tree,
can_render_to_separate_surface);
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | cc/trees/layer_tree_host_common_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698