| 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" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual base::TimeDelta BeginMainFrameQueueDurationNotCriticalEstimate() | 43 virtual base::TimeDelta BeginMainFrameQueueDurationNotCriticalEstimate() |
| 44 const; | 44 const; |
| 45 virtual base::TimeDelta BeginMainFrameStartToCommitDurationEstimate() const; | 45 virtual base::TimeDelta BeginMainFrameStartToCommitDurationEstimate() const; |
| 46 virtual base::TimeDelta CommitToReadyToActivateDurationEstimate() const; | 46 virtual base::TimeDelta CommitToReadyToActivateDurationEstimate() const; |
| 47 virtual base::TimeDelta PrepareTilesDurationEstimate() const; | 47 virtual base::TimeDelta PrepareTilesDurationEstimate() const; |
| 48 virtual base::TimeDelta ActivateDurationEstimate() const; | 48 virtual base::TimeDelta ActivateDurationEstimate() const; |
| 49 virtual base::TimeDelta DrawDurationEstimate() const; | 49 virtual base::TimeDelta DrawDurationEstimate() const; |
| 50 | 50 |
| 51 // State that affects when events should be expected/recorded/reported. | 51 // State that affects when events should be expected/recorded/reported. |
| 52 void SetRecordingEnabled(bool enabled); | 52 void SetRecordingEnabled(bool enabled); |
| 53 void DidCreateAndInitializeOutputSurface(); | 53 void DidCreateAndInitializeCompositorFrameSink(); |
| 54 | 54 |
| 55 // Events to be timed. | 55 // Events to be timed. |
| 56 void WillBeginImplFrame(bool new_active_tree_is_likely); | 56 void WillBeginImplFrame(bool new_active_tree_is_likely); |
| 57 void WillFinishImplFrame(bool needs_redraw); | 57 void WillFinishImplFrame(bool needs_redraw); |
| 58 void BeginImplFrameNotExpectedSoon(); | 58 void BeginImplFrameNotExpectedSoon(); |
| 59 void WillBeginMainFrame(bool on_critical_path, | 59 void WillBeginMainFrame(bool on_critical_path, |
| 60 base::TimeTicks main_frame_time); | 60 base::TimeTicks main_frame_time); |
| 61 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); | 61 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); |
| 62 void BeginMainFrameAborted(); | 62 void BeginMainFrameAborted(); |
| 63 void DidCommit(); | 63 void DidCommit(); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 std::unique_ptr<UMAReporter> uma_reporter_; | 120 std::unique_ptr<UMAReporter> uma_reporter_; |
| 121 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 121 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 122 | 122 |
| 123 private: | 123 private: |
| 124 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); | 124 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace cc | 127 } // namespace cc |
| 128 | 128 |
| 129 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ | 129 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ |
| OLD | NEW |