| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ | 5 #ifndef CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ |
| 6 #define CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ | 6 #define CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/rolling_time_delta_history.h" | 10 #include "cc/base/rolling_time_delta_history.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual base::TimeDelta CommitToReadyToActivateDurationEstimate() const; | 47 virtual base::TimeDelta CommitToReadyToActivateDurationEstimate() const; |
| 48 virtual base::TimeDelta PrepareTilesDurationEstimate() const; | 48 virtual base::TimeDelta PrepareTilesDurationEstimate() const; |
| 49 virtual base::TimeDelta ActivateDurationEstimate() const; | 49 virtual base::TimeDelta ActivateDurationEstimate() const; |
| 50 virtual base::TimeDelta DrawDurationEstimate() const; | 50 virtual base::TimeDelta DrawDurationEstimate() const; |
| 51 | 51 |
| 52 void SetRecordingEnabled(bool enabled); | 52 void SetRecordingEnabled(bool enabled); |
| 53 | 53 |
| 54 void WillBeginImplFrame(bool new_active_tree_is_likely); | 54 void WillBeginImplFrame(bool new_active_tree_is_likely); |
| 55 void WillFinishImplFrame(bool needs_redraw); | 55 void WillFinishImplFrame(bool needs_redraw); |
| 56 void BeginImplFrameNotExpectedSoon(); | 56 void BeginImplFrameNotExpectedSoon(); |
| 57 void WillBeginMainFrame(bool on_critical_path); | 57 void WillBeginMainFrame(bool on_critical_path, |
| 58 base::TimeTicks main_frame_time); |
| 58 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); | 59 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); |
| 59 void BeginMainFrameAborted(); | 60 void BeginMainFrameAborted(); |
| 60 void DidCommit(); | 61 void DidCommit(); |
| 61 void WillPrepareTiles(); | 62 void WillPrepareTiles(); |
| 62 void DidPrepareTiles(); | 63 void DidPrepareTiles(); |
| 63 void ReadyToActivate(); | 64 void ReadyToActivate(); |
| 64 void WillActivate(); | 65 void WillActivate(); |
| 65 void DidActivate(); | 66 void DidActivate(); |
| 66 void WillDraw(); | 67 void WillDraw(); |
| 67 void DidDraw(bool used_new_active_tree); | 68 void DidDraw(bool used_new_active_tree, |
| 69 bool main_thread_missed_last_deadline, |
| 70 base::TimeTicks impl_frame_time); |
| 68 void DidSwapBuffers(); | 71 void DidSwapBuffers(); |
| 69 void DidSwapBuffersComplete(); | 72 void DidSwapBuffersComplete(); |
| 70 void DidSwapBuffersReset(); | 73 void DidSwapBuffersReset(); |
| 71 | 74 |
| 72 protected: | 75 protected: |
| 73 void DidBeginMainFrame(); | 76 void DidBeginMainFrame(); |
| 74 | 77 |
| 75 void SetBeginMainFrameNeededContinuously(bool active); | 78 void SetBeginMainFrameNeededContinuously(bool active); |
| 76 void SetBeginMainFrameCommittingContinuously(bool active); | 79 void SetBeginMainFrameCommittingContinuously(bool active); |
| 77 void SetCompositorDrawingContinuously(bool active); | 80 void SetCompositorDrawingContinuously(bool active); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 93 RollingTimeDeltaHistory begin_main_frame_sent_to_commit_duration_history_; | 96 RollingTimeDeltaHistory begin_main_frame_sent_to_commit_duration_history_; |
| 94 RollingTimeDeltaHistory begin_main_frame_queue_duration_critical_history_; | 97 RollingTimeDeltaHistory begin_main_frame_queue_duration_critical_history_; |
| 95 RollingTimeDeltaHistory begin_main_frame_queue_duration_not_critical_history_; | 98 RollingTimeDeltaHistory begin_main_frame_queue_duration_not_critical_history_; |
| 96 RollingTimeDeltaHistory begin_main_frame_start_to_commit_duration_history_; | 99 RollingTimeDeltaHistory begin_main_frame_start_to_commit_duration_history_; |
| 97 RollingTimeDeltaHistory commit_to_ready_to_activate_duration_history_; | 100 RollingTimeDeltaHistory commit_to_ready_to_activate_duration_history_; |
| 98 RollingTimeDeltaHistory prepare_tiles_duration_history_; | 101 RollingTimeDeltaHistory prepare_tiles_duration_history_; |
| 99 RollingTimeDeltaHistory activate_duration_history_; | 102 RollingTimeDeltaHistory activate_duration_history_; |
| 100 RollingTimeDeltaHistory draw_duration_history_; | 103 RollingTimeDeltaHistory draw_duration_history_; |
| 101 | 104 |
| 102 bool begin_main_frame_on_critical_path_; | 105 bool begin_main_frame_on_critical_path_; |
| 106 base::TimeTicks begin_main_frame_frame_time_; |
| 103 base::TimeTicks begin_main_frame_sent_time_; | 107 base::TimeTicks begin_main_frame_sent_time_; |
| 104 base::TimeTicks begin_main_frame_start_time_; | 108 base::TimeTicks begin_main_frame_start_time_; |
| 105 base::TimeTicks begin_main_frame_end_time_; | 109 base::TimeTicks begin_main_frame_end_time_; |
| 110 base::TimeTicks pending_tree_main_frame_time_; |
| 106 base::TimeTicks prepare_tiles_start_time_; | 111 base::TimeTicks prepare_tiles_start_time_; |
| 107 base::TimeTicks activate_start_time_; | 112 base::TimeTicks activate_start_time_; |
| 113 base::TimeTicks active_tree_main_frame_time_; |
| 108 base::TimeTicks draw_start_time_; | 114 base::TimeTicks draw_start_time_; |
| 109 base::TimeTicks swap_start_time_; | 115 base::TimeTicks swap_start_time_; |
| 110 | 116 |
| 111 scoped_ptr<UMAReporter> uma_reporter_; | 117 scoped_ptr<UMAReporter> uma_reporter_; |
| 112 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 118 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 113 | 119 |
| 114 private: | 120 private: |
| 115 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); | 121 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); |
| 116 }; | 122 }; |
| 117 | 123 |
| 118 } // namespace cc | 124 } // namespace cc |
| 119 | 125 |
| 120 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ | 126 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ |
| OLD | NEW |