Chromium Code Reviews| Index: cc/scheduler/compositor_timing_history.h |
| diff --git a/cc/scheduler/compositor_timing_history.h b/cc/scheduler/compositor_timing_history.h |
| index 41a8484596de5ae96150b268b2b46a9304980ea3..3505e8bfb4a4f3f0229f83dc6eca4946f5eb7a52 100644 |
| --- a/cc/scheduler/compositor_timing_history.h |
| +++ b/cc/scheduler/compositor_timing_history.h |
| @@ -25,26 +25,43 @@ class CC_EXPORT CompositorTimingHistory { |
| void AsValueInto(base::trace_event::TracedValue* state) const; |
| - virtual base::TimeDelta DrawDurationEstimate() const; |
| virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() const; |
| - virtual base::TimeDelta CommitToActivateDurationEstimate() const; |
| + virtual base::TimeDelta PrepareTilesDurationEstimate() const; |
| + virtual base::TimeDelta PrepareTilesBeginToReadyToActivateDurationEstimate() |
|
sunnyps
2015/06/24 23:34:12
Why is this not called CommitToReadyToActivateDura
brianderson
2015/06/24 23:46:16
See other comment.
|
| + const; |
| + virtual base::TimeDelta ActivateDurationEstimate() const; |
| + virtual base::TimeDelta DrawDurationEstimate() const; |
| + |
| + void SetRecordingEnabled(bool enabled); |
| void WillBeginMainFrame(); |
| + void BeginMainFrameAborted(); |
| void DidCommit(); |
| - void DidActivateSyncTree(); |
| - void DidStartDrawing(); |
| - void DidFinishDrawing(); |
| + void WillPrepareTiles(); |
| + void DidPrepareTiles(); |
| + void ReadyToActivate(); |
| + void WillActivate(); |
| + void DidActivate(); |
| + void WillDraw(); |
| + void DidDraw(); |
| protected: |
| + virtual base::TimeTicks Now() const; |
| + |
| void AddDrawDurationUMA(base::TimeDelta draw_duration, |
| base::TimeDelta draw_duration_estimate); |
| - RollingTimeDeltaHistory draw_duration_history_; |
| + bool enabled_; |
| + |
| RollingTimeDeltaHistory begin_main_frame_to_commit_duration_history_; |
| - RollingTimeDeltaHistory commit_to_activate_duration_history_; |
| + RollingTimeDeltaHistory prepare_tiles_to_ready_to_activate_duration_history_; |
| + RollingTimeDeltaHistory prepare_tiles_duration_history_; |
| + RollingTimeDeltaHistory activate_duration_history_; |
| + RollingTimeDeltaHistory draw_duration_history_; |
| base::TimeTicks begin_main_frame_sent_time_; |
| - base::TimeTicks commit_complete_time_; |
| + base::TimeTicks start_prepare_tiles_time_; |
| + base::TimeTicks start_activate_time_; |
| base::TimeTicks start_draw_time_; |
| RenderingStatsInstrumentation* rendering_stats_instrumentation_; |