Chromium Code Reviews| 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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/base/rolling_time_delta_history.h" | 9 #include "cc/base/rolling_time_delta_history.h" |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); | 54 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); |
| 55 void BeginMainFrameAborted(); | 55 void BeginMainFrameAborted(); |
| 56 void DidCommit(); | 56 void DidCommit(); |
| 57 void WillPrepareTiles(); | 57 void WillPrepareTiles(); |
| 58 void DidPrepareTiles(); | 58 void DidPrepareTiles(); |
| 59 void ReadyToActivate(); | 59 void ReadyToActivate(); |
| 60 void WillActivate(); | 60 void WillActivate(); |
| 61 void DidActivate(); | 61 void DidActivate(); |
| 62 void WillDraw(); | 62 void WillDraw(); |
| 63 void DidDraw(); | 63 void DidDraw(); |
| 64 void DidSwapBuffers(); | |
| 65 void DidSwapBuffersComplete(); | |
| 66 void DidSwapBuffersReset(); | |
| 64 | 67 |
| 65 protected: | 68 protected: |
| 66 static scoped_ptr<UMAReporter> CreateUMAReporter(UMACategory category); | 69 static scoped_ptr<UMAReporter> CreateUMAReporter(UMACategory category); |
| 67 virtual base::TimeTicks Now() const; | 70 virtual base::TimeTicks Now() const; |
| 68 | 71 |
| 69 bool enabled_; | 72 bool enabled_; |
| 70 | 73 |
| 71 RollingTimeDeltaHistory begin_main_frame_sent_to_commit_duration_history_; | 74 RollingTimeDeltaHistory begin_main_frame_sent_to_commit_duration_history_; |
| 72 RollingTimeDeltaHistory begin_main_frame_queue_duration_critical_history_; | 75 RollingTimeDeltaHistory begin_main_frame_queue_duration_critical_history_; |
| 73 RollingTimeDeltaHistory begin_main_frame_queue_duration_not_critical_history_; | 76 RollingTimeDeltaHistory begin_main_frame_queue_duration_not_critical_history_; |
| 74 RollingTimeDeltaHistory begin_main_frame_start_to_commit_duration_history_; | 77 RollingTimeDeltaHistory begin_main_frame_start_to_commit_duration_history_; |
| 75 RollingTimeDeltaHistory commit_to_ready_to_activate_duration_history_; | 78 RollingTimeDeltaHistory commit_to_ready_to_activate_duration_history_; |
| 76 RollingTimeDeltaHistory prepare_tiles_duration_history_; | 79 RollingTimeDeltaHistory prepare_tiles_duration_history_; |
| 77 RollingTimeDeltaHistory activate_duration_history_; | 80 RollingTimeDeltaHistory activate_duration_history_; |
| 78 RollingTimeDeltaHistory draw_duration_history_; | 81 RollingTimeDeltaHistory draw_duration_history_; |
| 79 | 82 |
| 80 bool begin_main_frame_on_critical_path_; | 83 bool begin_main_frame_on_critical_path_; |
| 81 base::TimeTicks begin_main_frame_sent_time_; | 84 base::TimeTicks begin_main_frame_sent_time_; |
| 82 base::TimeTicks begin_main_frame_start_time_; | 85 base::TimeTicks begin_main_frame_start_time_; |
| 83 base::TimeTicks commit_time_; | 86 base::TimeTicks commit_time_; |
| 84 base::TimeTicks start_prepare_tiles_time_; | 87 base::TimeTicks start_prepare_tiles_time_; |
| 85 base::TimeTicks start_activate_time_; | 88 base::TimeTicks start_activate_time_; |
| 86 base::TimeTicks start_draw_time_; | 89 base::TimeTicks start_draw_time_; |
| 90 base::TimeTicks swap_start_time_; | |
|
tdresser
2015/11/06 13:00:34
start_swap_time_, for consistency.
mithro-old
2015/11/07 04:13:15
Won't this fail if we have a max_pending_swaps > 1
| |
| 87 | 91 |
| 88 scoped_ptr<UMAReporter> uma_reporter_; | 92 scoped_ptr<UMAReporter> uma_reporter_; |
| 89 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 93 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 90 | 94 |
| 91 private: | 95 private: |
| 92 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); | 96 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); |
| 93 }; | 97 }; |
| 94 | 98 |
| 95 } // namespace cc | 99 } // namespace cc |
| 96 | 100 |
| 97 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ | 101 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ |
| OLD | NEW |