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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 363003002: Add duration estimation data to RenderingStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: LTHI forwards estimates to rendering stats. 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_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 3b971912eb5e767ac1a2d745ded9fee18adfab61..983ee63b8fab95a035fe81b285bf5832ae48a03b 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3252,4 +3252,23 @@ void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
picture_layers_.erase(it);
}
+void LayerTreeHostImpl::AddBeginMainFrameToCommitDurationEstimate(
+ base::TimeDelta duration,
+ base::TimeDelta estimate) {
+ rendering_stats_instrumentation_->AddBeginMainFrameToCommitDuration(duration,
+ estimate);
+}
+
+void LayerTreeHostImpl::AddCommitToActivateDurationEstimate(
+ base::TimeDelta duration,
+ base::TimeDelta estimate) {
+ rendering_stats_instrumentation_->AddCommitToActivateDuration(duration,
+ estimate);
+}
+
+void LayerTreeHostImpl::AddDrawDurationEstimate(base::TimeDelta duration,
+ base::TimeDelta estimate) {
+ rendering_stats_instrumentation_->AddDrawDuration(duration, estimate);
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698