| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "cc/base/rolling_time_delta_history.h" | 11 #include "cc/base/rolling_time_delta_history.h" |
| 12 #include "cc/output/begin_frame_args.h" |
| 12 | 13 |
| 13 namespace base { | 14 namespace base { |
| 14 namespace trace_event { | 15 namespace trace_event { |
| 15 class TracedValue; | 16 class TracedValue; |
| 16 } // namespace trace_event | 17 } // namespace trace_event |
| 17 } // namespace base | 18 } // namespace base |
| 18 | 19 |
| 19 namespace cc { | 20 namespace cc { |
| 20 | 21 |
| 21 class RenderingStatsInstrumentation; | 22 class RenderingStatsInstrumentation; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 50 | 51 |
| 51 // State that affects when events should be expected/recorded/reported. | 52 // State that affects when events should be expected/recorded/reported. |
| 52 void SetRecordingEnabled(bool enabled); | 53 void SetRecordingEnabled(bool enabled); |
| 53 void DidCreateAndInitializeCompositorFrameSink(); | 54 void DidCreateAndInitializeCompositorFrameSink(); |
| 54 | 55 |
| 55 // Events to be timed. | 56 // Events to be timed. |
| 56 void WillBeginImplFrame(bool new_active_tree_is_likely); | 57 void WillBeginImplFrame(bool new_active_tree_is_likely); |
| 57 void WillFinishImplFrame(bool needs_redraw); | 58 void WillFinishImplFrame(bool needs_redraw); |
| 58 void BeginImplFrameNotExpectedSoon(); | 59 void BeginImplFrameNotExpectedSoon(); |
| 59 void WillBeginMainFrame(bool on_critical_path, | 60 void WillBeginMainFrame(bool on_critical_path, |
| 60 base::TimeTicks main_frame_time); | 61 base::TimeTicks main_frame_time, |
| 62 BeginFrameArgs::BeginFrameArgsType frame_type); |
| 61 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); | 63 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); |
| 62 void BeginMainFrameAborted(); | 64 void BeginMainFrameAborted(); |
| 63 void DidCommit(); | 65 void DidCommit(); |
| 64 void WillPrepareTiles(); | 66 void WillPrepareTiles(); |
| 65 void DidPrepareTiles(); | 67 void DidPrepareTiles(); |
| 66 void ReadyToActivate(); | 68 void ReadyToActivate(); |
| 67 void WillActivate(); | 69 void WillActivate(); |
| 68 void DidActivate(); | 70 void DidActivate(); |
| 69 void DrawAborted(); | 71 void DrawAborted(); |
| 70 void WillDraw(); | 72 void WillDraw(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 std::unique_ptr<UMAReporter> uma_reporter_; | 125 std::unique_ptr<UMAReporter> uma_reporter_; |
| 124 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 126 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 125 | 127 |
| 126 private: | 128 private: |
| 127 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); | 129 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); |
| 128 }; | 130 }; |
| 129 | 131 |
| 130 } // namespace cc | 132 } // namespace cc |
| 131 | 133 |
| 132 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ | 134 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ |
| OLD | NEW |