| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void ReadyToActivate(); | 50 void ReadyToActivate(); |
| 51 void WillActivate(); | 51 void WillActivate(); |
| 52 void DidActivate(); | 52 void DidActivate(); |
| 53 void WillDraw(); | 53 void WillDraw(); |
| 54 void DidDraw(); | 54 void DidDraw(); |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 static scoped_ptr<UMAReporter> CreateUMAReporter(UMACategory category); | 57 static scoped_ptr<UMAReporter> CreateUMAReporter(UMACategory category); |
| 58 virtual base::TimeTicks Now() const; | 58 virtual base::TimeTicks Now() const; |
| 59 | 59 |
| 60 bool AffectsEstimate() const; | |
| 61 | |
| 62 bool enabled_; | 60 bool enabled_; |
| 63 int draws_left_before_estimates_affected_; | |
| 64 | 61 |
| 65 RollingTimeDeltaHistory begin_main_frame_to_commit_duration_history_; | 62 RollingTimeDeltaHistory begin_main_frame_to_commit_duration_history_; |
| 66 RollingTimeDeltaHistory commit_to_ready_to_activate_duration_history_; | 63 RollingTimeDeltaHistory commit_to_ready_to_activate_duration_history_; |
| 67 RollingTimeDeltaHistory prepare_tiles_duration_history_; | 64 RollingTimeDeltaHistory prepare_tiles_duration_history_; |
| 68 RollingTimeDeltaHistory activate_duration_history_; | 65 RollingTimeDeltaHistory activate_duration_history_; |
| 69 RollingTimeDeltaHistory draw_duration_history_; | 66 RollingTimeDeltaHistory draw_duration_history_; |
| 70 | 67 |
| 71 base::TimeTicks begin_main_frame_sent_time_; | 68 base::TimeTicks begin_main_frame_sent_time_; |
| 72 base::TimeTicks commit_time_; | 69 base::TimeTicks commit_time_; |
| 73 base::TimeTicks start_prepare_tiles_time_; | 70 base::TimeTicks start_prepare_tiles_time_; |
| 74 base::TimeTicks start_activate_time_; | 71 base::TimeTicks start_activate_time_; |
| 75 base::TimeTicks start_draw_time_; | 72 base::TimeTicks start_draw_time_; |
| 76 | 73 |
| 77 scoped_ptr<UMAReporter> uma_reporter_; | 74 scoped_ptr<UMAReporter> uma_reporter_; |
| 78 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 75 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 79 | 76 |
| 80 private: | 77 private: |
| 81 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); | 78 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); |
| 82 }; | 79 }; |
| 83 | 80 |
| 84 } // namespace cc | 81 } // namespace cc |
| 85 | 82 |
| 86 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ | 83 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ |
| OLD | NEW |