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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 2846653002: cc : Stop pushing layers from hidden subtrees at commit
Patch Set: don't add hidden layers to push propreties list 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
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 11a354ab33e91e5fba1808882b707e6504131573..ce808d4b6c8e96f35e9f517d8b636502c8318b72 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -1070,6 +1070,8 @@ bool LayerTreeHost::PaintContent(const LayerList& update_layer_list,
}
void LayerTreeHost::AddLayerShouldPushProperties(Layer* layer) {
+ if (layer->is_hidden())
enne (OOO) 2017/05/01 20:15:09 This is a little awkward, here. I think what you
jaydasika 2017/05/01 23:41:39 Yes, what we want to say is if a layer is hidden,
enne (OOO) 2017/05/02 01:46:01 That sounds good!
jaydasika 2017/05/19 19:08:59 Done.
+ return;
layers_that_should_push_properties_.insert(layer);
}
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698