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

Unified Diff: cc/trees/layer_tree_host_impl.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_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index f0ce9370ed2c598662bdef7eed9c547b7b63a250..a5dad720c6e4bd678c94fb453365ff6c75b92fe8 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1626,10 +1626,12 @@ void LayerTreeHostImpl::DrawLayers(FrameData* frame) {
if (is_new_trace) {
if (pending_tree_) {
LayerTreeHostCommon::CallFunctionForEveryLayer(
- pending_tree(), [](LayerImpl* layer) { layer->DidBeginTracing(); });
+ pending_tree(), [](LayerImpl* layer) { layer->DidBeginTracing(); },
+ CallFunctionLayerType::ALL_LAYERS);
}
LayerTreeHostCommon::CallFunctionForEveryLayer(
- active_tree(), [](LayerImpl* layer) { layer->DidBeginTracing(); });
+ active_tree(), [](LayerImpl* layer) { layer->DidBeginTracing(); },
+ CallFunctionLayerType::ALL_LAYERS);
}
{

Powered by Google App Engine
This is Rietveld 408576698