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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1846043002: cc : Make CallFunctionForSubtree on impl use layer iterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_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_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 92819160c6d5c643b82af935bec906e6e225e573..f0ce9370ed2c598662bdef7eed9c547b7b63a250 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1625,13 +1625,11 @@ void LayerTreeHostImpl::DrawLayers(FrameData* frame) {
TRACE_EVENT_IS_NEW_TRACE(&is_new_trace);
if (is_new_trace) {
if (pending_tree_) {
- LayerTreeHostCommon::CallFunctionForSubtree(
- pending_tree_->root_layer(),
- [](LayerImpl* layer) { layer->DidBeginTracing(); });
+ LayerTreeHostCommon::CallFunctionForEveryLayer(
+ pending_tree(), [](LayerImpl* layer) { layer->DidBeginTracing(); });
}
- LayerTreeHostCommon::CallFunctionForSubtree(
- active_tree_->root_layer(),
- [](LayerImpl* layer) { layer->DidBeginTracing(); });
+ LayerTreeHostCommon::CallFunctionForEveryLayer(
+ active_tree(), [](LayerImpl* layer) { layer->DidBeginTracing(); });
}
{
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698