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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 1864183002: cc: Main thread skip single layers instead of subtrees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the dependency problem 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
« cc/trees/layer_tree_host_common.h ('K') | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree_builder.cc
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc
index 7b4300b9fab6c98ffa833d4eae1f6481e0cba1bd..78d7624d766b372092054e4841c1293d722d551c 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -632,6 +632,9 @@ bool AddEffectNodeIfNeeded(
node.data.has_background_filters;
node.data.to_screen_opacity_is_animated =
parent_node->data.to_screen_opacity_is_animated || has_animated_opacity;
+ node.data.to_screen_opacity_can_animate_on_impl =
+ parent_node->data.to_screen_opacity_can_animate_on_impl &&
+ layer->OpacityCanAnimateOnImplThread();
ajuma 2016/04/06 19:49:29 I believe to_screen_opacity_is_animated already ac
sunxd 2016/04/07 15:37:13 Done.
} else {
// Root render surface acts the unbounded and untransformed to draw content
// into. Transform node created from root layer (includes device scale
@@ -642,6 +645,8 @@ bool AddEffectNodeIfNeeded(
node.data.node_or_ancestor_has_background_filters =
node.data.has_background_filters;
node.data.to_screen_opacity_is_animated = has_animated_opacity;
+ node.data.to_screen_opacity_can_animate_on_impl =
+ layer->OpacityCanAnimateOnImplThread();
}
node.data.target_id =
should_create_render_surface
« cc/trees/layer_tree_host_common.h ('K') | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698