OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ | 5 #ifndef CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ |
6 #define CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ | 6 #define CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "cc/debug/rendering_stats.h" | 10 #include "cc/debug/rendering_stats.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 base::TimeTicks StartRecording() const; | 57 base::TimeTicks StartRecording() const; |
58 base::TimeDelta EndRecording(base::TimeTicks start_time) const; | 58 base::TimeDelta EndRecording(base::TimeTicks start_time) const; |
59 | 59 |
60 void IncrementAnimationFrameCount(); | 60 void IncrementAnimationFrameCount(); |
61 void IncrementScreenFrameCount(int64 count, bool main_thread); | 61 void IncrementScreenFrameCount(int64 count, bool main_thread); |
62 void IncrementDroppedFrameCount(int64 count); | 62 void IncrementDroppedFrameCount(int64 count); |
63 | 63 |
64 void AddCommit(base::TimeDelta duration); | 64 void AddCommit(base::TimeDelta duration); |
65 void AddPaint(base::TimeDelta duration, int64 pixels); | 65 void AddPaint(base::TimeDelta duration, int64 pixels); |
66 void AddRecord(base::TimeDelta duration, int64 pixels); | 66 void AddRecord(base::TimeDelta duration, |
| 67 base::TimeDelta best_duration, |
| 68 int64 pixels); |
67 void AddRaster(base::TimeDelta total_duraction, | 69 void AddRaster(base::TimeDelta total_duraction, |
68 base::TimeDelta best_duration, | 70 base::TimeDelta best_duration, |
69 int64 pixels, | 71 int64 pixels, |
70 bool is_in_pending_tree_now_bin); | 72 bool is_in_pending_tree_now_bin); |
71 | 73 |
72 void IncrementImplThreadScrolls(); | 74 void IncrementImplThreadScrolls(); |
73 void IncrementMainThreadScrolls(); | 75 void IncrementMainThreadScrolls(); |
74 | 76 |
75 void AddLayersDrawn(int64 amount); | 77 void AddLayersDrawn(int64 amount); |
76 void AddMissingTiles(int64 amount); | 78 void AddMissingTiles(int64 amount); |
(...skipping 17 matching lines...) Expand all Loading... |
94 bool record_rendering_stats_; | 96 bool record_rendering_stats_; |
95 | 97 |
96 base::Lock lock_; | 98 base::Lock lock_; |
97 | 99 |
98 DISALLOW_COPY_AND_ASSIGN(RenderingStatsInstrumentation); | 100 DISALLOW_COPY_AND_ASSIGN(RenderingStatsInstrumentation); |
99 }; | 101 }; |
100 | 102 |
101 } // namespace cc | 103 } // namespace cc |
102 | 104 |
103 #endif // CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ | 105 #endif // CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ |
OLD | NEW |