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

Unified Diff: cc/trees/layer_tree_host.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
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 3bd87f32ef8c69b5b1a8d1279b4ead7a7e33bc3b..4868a54b0ebde896c3c527f0e12486b912c6e59f 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -359,7 +359,8 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) {
frame_viewer_instrumentation::IsTracingLayerTreeSnapshots() &&
root_layer()) {
LayerTreeHostCommon::CallFunctionForEveryLayer(
- this, [](Layer* layer) { layer->DidBeginTracing(); });
+ this, [](Layer* layer) { layer->DidBeginTracing(); },
+ CallFunctionLayerType::ALL_LAYERS);
}
LayerTreeImpl* sync_tree = host_impl->sync_tree();
@@ -1572,9 +1573,12 @@ void LayerTreeHost::FromProtobufForCommit(const proto::LayerTreeHost& proto) {
// updated for other reasons. All layers that at this point are part of the
// layer tree are valid, so it is OK that they have a valid sequence number.
int seq_num = property_trees_.sequence_number;
- LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
- layer->set_property_tree_sequence_number(seq_num);
- });
+ LayerTreeHostCommon::CallFunctionForEveryLayer(
+ this,
+ [seq_num](Layer* layer) {
+ layer->set_property_tree_sequence_number(seq_num);
+ },
+ CallFunctionLayerType::ALL_LAYERS);
surface_id_namespace_ = proto.surface_id_namespace();
next_surface_sequence_ = proto.next_surface_sequence();

Powered by Google App Engine
This is Rietveld 408576698