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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 void WillBeginMainFrame(bool on_critical_path); | 57 void WillBeginMainFrame(bool on_critical_path); |
58 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); | 58 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); |
59 void BeginMainFrameAborted(); | 59 void BeginMainFrameAborted(); |
60 void DidCommit(); | 60 void DidCommit(); |
61 void WillPrepareTiles(); | 61 void WillPrepareTiles(); |
62 void DidPrepareTiles(); | 62 void DidPrepareTiles(); |
63 void ReadyToActivate(); | 63 void ReadyToActivate(); |
64 void WillActivate(); | 64 void WillActivate(); |
65 void DidActivate(); | 65 void DidActivate(); |
66 void WillDraw(); | 66 void WillDraw(); |
67 void DidDraw(bool used_new_active_tree); | 67 void DidDraw(bool used_new_active_tree, |
68 bool main_thread_missed_last_deadline); | |
tdresser
2016/02/10 17:15:20
Would it make sense to record how many deadlines t
Sami
2016/02/10 17:28:54
Do you mean the lateness in milliseconds? I guess
| |
68 void DidSwapBuffers(); | 69 void DidSwapBuffers(); |
69 void DidSwapBuffersComplete(); | 70 void DidSwapBuffersComplete(); |
70 void DidSwapBuffersReset(); | 71 void DidSwapBuffersReset(); |
71 | 72 |
72 protected: | 73 protected: |
73 void DidBeginMainFrame(); | 74 void DidBeginMainFrame(); |
74 | 75 |
75 void SetBeginMainFrameNeededContinuously(bool active); | 76 void SetBeginMainFrameNeededContinuously(bool active); |
76 void SetBeginMainFrameCommittingContinuously(bool active); | 77 void SetBeginMainFrameCommittingContinuously(bool active); |
77 void SetCompositorDrawingContinuously(bool active); | 78 void SetCompositorDrawingContinuously(bool active); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 scoped_ptr<UMAReporter> uma_reporter_; | 112 scoped_ptr<UMAReporter> uma_reporter_; |
112 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 113 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
113 | 114 |
114 private: | 115 private: |
115 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); | 116 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); |
116 }; | 117 }; |
117 | 118 |
118 } // namespace cc | 119 } // namespace cc |
119 | 120 |
120 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ | 121 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ |
OLD | NEW |