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

Unified Diff: cc/scheduler/compositor_timing_history.h

Issue 1423803004: cc: Record UMA for swap to swap ack latency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iltpFutile4
Patch Set: rebase Created 5 years, 1 month 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 | « no previous file | cc/scheduler/compositor_timing_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/compositor_timing_history.h
diff --git a/cc/scheduler/compositor_timing_history.h b/cc/scheduler/compositor_timing_history.h
index 757072b8c734543baaadd5bc537028e5083f5fcb..b09923ab308c53fededda6df230a35f77ca50212 100644
--- a/cc/scheduler/compositor_timing_history.h
+++ b/cc/scheduler/compositor_timing_history.h
@@ -61,6 +61,9 @@ class CC_EXPORT CompositorTimingHistory {
void DidActivate();
void WillDraw();
void DidDraw();
+ void DidSwapBuffers();
+ void DidSwapBuffersComplete();
+ void DidSwapBuffersReset();
protected:
static scoped_ptr<UMAReporter> CreateUMAReporter(UMACategory category);
@@ -84,6 +87,7 @@ class CC_EXPORT CompositorTimingHistory {
base::TimeTicks start_prepare_tiles_time_;
base::TimeTicks start_activate_time_;
base::TimeTicks start_draw_time_;
+ base::TimeTicks swap_start_time_;
scoped_ptr<UMAReporter> uma_reporter_;
RenderingStatsInstrumentation* rendering_stats_instrumentation_;
« no previous file with comments | « no previous file | cc/scheduler/compositor_timing_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698