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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 397443002: [not for review] Add Draw entries to window Performance Timeline Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git pull of third_party/WebKit Created 6 years, 5 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 5d49f6135e9f9110bdc5d3649aea9008669b9aa4..3b2a880bf441dd34be31120a0b1899389821dbde 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -1076,6 +1076,15 @@ void LayerTreeHost::ApplyScrollAndScale(const ScrollAndScaleSet& info) {
}
}
+void LayerTreeHost::RecordDrawTiming(const DrawTimingSet& info) {
+ if (!root_layer_.get())
+ return;
+
+ for (size_t i = 0; i < info.draws.size(); ++i) {
+ client_->RecordDrawTiming(info.draws[i].rect_id, info.draws[i].timestamps);
enne (OOO) 2014/07/22 20:44:25 Can you help me understand what the eventual API i
Mike B 2014/07/25 23:09:40 Both.. but timestamp is the main thing being deliv
+ }
+}
+
void LayerTreeHost::StartRateLimiter() {
if (animating_)
return;

Powered by Google App Engine
This is Rietveld 408576698