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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 914403003: cc: Add main frame timing info to frame timing tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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_impl.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index b5f8aed2307ba159c5c091f123706c768324942f..c2edaae65d308c7b3eca5b5b5607288d99012da5 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -34,7 +34,6 @@
#include "ui/gfx/geometry/vector2d_conversions.h"
namespace cc {
-
// This class exists to split the LayerScrollOffsetDelegate between the
// InnerViewportScrollLayer and the OuterViewportScrollLayer in a manner
// that never requires the embedder or LayerImpl to know about.
@@ -135,6 +134,20 @@ void LayerTreeImpl::RecreateResources() {
}
}
+void LayerTreeImpl::GatherFrameTimingRequestIds(
+ std::vector<int64_t>* request_ids) {
+ if (!root_layer_)
+ return;
+
+ // TODO(vmpstr): Early out if there are no requests on any of the layers. For
+ // that, we need to inform LayerTreeImpl whenever there are requests when we
+ // get them.
+ LayerTreeHostCommon::CallFunctionForSubtree(
+ root_layer_.get(), [request_ids](LayerImpl* layer) {
+ layer->GatherFrameTimingRequestIds(request_ids);
+ });
+}
+
void LayerTreeImpl::SetRootLayer(scoped_ptr<LayerImpl> layer) {
if (inner_viewport_scroll_layer_)
inner_viewport_scroll_layer_->SetScrollOffsetDelegate(NULL);
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698