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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 if (record_rendering_stats_ != record_rendering_stats) | 43 if (record_rendering_stats_ != record_rendering_stats) |
44 record_rendering_stats_ = record_rendering_stats; | 44 record_rendering_stats_ = record_rendering_stats; |
45 } | 45 } |
46 | 46 |
47 base::TimeTicks StartRecording() const; | 47 base::TimeTicks StartRecording() const; |
48 base::TimeDelta EndRecording(base::TimeTicks start_time) const; | 48 base::TimeDelta EndRecording(base::TimeTicks start_time) const; |
49 | 49 |
50 void IncrementFrameCount(int64 count); | 50 void IncrementFrameCount(int64 count); |
51 void AddPaint(base::TimeDelta duration, int64 pixels); | 51 void AddPaint(base::TimeDelta duration, int64 pixels); |
52 void AddRecord(base::TimeDelta duration, int64 pixels); | 52 void AddRecord(base::TimeDelta duration, int64 pixels); |
53 void AddRaster(base::TimeDelta duration, int64 pixels); | |
54 void AddAnalysis(base::TimeDelta duration, int64 pixels); | |
55 void AddVisibleContentArea(int64 area); | 53 void AddVisibleContentArea(int64 area); |
56 void AddApproximatedVisibleContentArea(int64 area); | 54 void AddApproximatedVisibleContentArea(int64 area); |
57 void AddDrawDuration(base::TimeDelta draw_duration, | 55 void AddDrawDuration(base::TimeDelta draw_duration, |
58 base::TimeDelta draw_duration_estimate); | 56 base::TimeDelta draw_duration_estimate); |
59 void AddBeginMainFrameToCommitDuration( | 57 void AddBeginMainFrameToCommitDuration( |
60 base::TimeDelta begin_main_frame_to_commit_duration, | 58 base::TimeDelta begin_main_frame_to_commit_duration, |
61 base::TimeDelta begin_main_frame_to_commit_duration_estimate); | 59 base::TimeDelta begin_main_frame_to_commit_duration_estimate); |
62 void AddCommitToActivateDuration( | 60 void AddCommitToActivateDuration( |
63 base::TimeDelta commit_to_activate_duration, | 61 base::TimeDelta commit_to_activate_duration, |
64 base::TimeDelta commit_to_activate_duration_estimate); | 62 base::TimeDelta commit_to_activate_duration_estimate); |
(...skipping 10 matching lines...) Expand all Loading... |
75 bool record_rendering_stats_; | 73 bool record_rendering_stats_; |
76 | 74 |
77 base::Lock lock_; | 75 base::Lock lock_; |
78 | 76 |
79 DISALLOW_COPY_AND_ASSIGN(RenderingStatsInstrumentation); | 77 DISALLOW_COPY_AND_ASSIGN(RenderingStatsInstrumentation); |
80 }; | 78 }; |
81 | 79 |
82 } // namespace cc | 80 } // namespace cc |
83 | 81 |
84 #endif // CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ | 82 #endif // CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ |
OLD | NEW |