OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_H_ | 5 #ifndef CC_DEBUG_RENDERING_STATS_H_ |
6 #define CC_DEBUG_RENDERING_STATS_H_ | 6 #define CC_DEBUG_RENDERING_STATS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 }; | 29 }; |
30 | 30 |
31 struct CC_EXPORT MainThreadRenderingStats { | 31 struct CC_EXPORT MainThreadRenderingStats { |
32 // Note: when adding new members, please remember to update EnumerateFields | 32 // Note: when adding new members, please remember to update EnumerateFields |
33 // and Add in rendering_stats.cc. | 33 // and Add in rendering_stats.cc. |
34 | 34 |
35 int64 animation_frame_count; | 35 int64 animation_frame_count; |
36 int64 screen_frame_count; | 36 int64 screen_frame_count; |
37 base::TimeDelta paint_time; | 37 base::TimeDelta paint_time; |
38 base::TimeDelta record_time; | 38 base::TimeDelta record_time; |
| 39 base::TimeDelta best_record_time; |
39 base::TimeDelta commit_time; | 40 base::TimeDelta commit_time; |
40 int64 commit_count; | 41 int64 commit_count; |
41 int64 painted_pixel_count; | 42 int64 painted_pixel_count; |
42 int64 recorded_pixel_count; | 43 int64 recorded_pixel_count; |
43 int64 image_gathering_count; | 44 int64 image_gathering_count; |
44 base::TimeDelta image_gathering_time; | 45 base::TimeDelta image_gathering_time; |
45 | 46 |
46 MainThreadRenderingStats(); | 47 MainThreadRenderingStats(); |
47 void IssueTraceEvent() const; | 48 void IssueTraceEvent() const; |
48 scoped_ptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const; | 49 scoped_ptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Outputs the fields in this structure to the provided enumerator. | 86 // Outputs the fields in this structure to the provided enumerator. |
86 void EnumerateFields(Enumerator* enumerator) const; | 87 void EnumerateFields(Enumerator* enumerator) const; |
87 | 88 |
88 // Add fields of |other| to the fields in this structure. | 89 // Add fields of |other| to the fields in this structure. |
89 void Add(const RenderingStats& other); | 90 void Add(const RenderingStats& other); |
90 }; | 91 }; |
91 | 92 |
92 } // namespace cc | 93 } // namespace cc |
93 | 94 |
94 #endif // CC_DEBUG_RENDERING_STATS_H_ | 95 #endif // CC_DEBUG_RENDERING_STATS_H_ |
OLD | NEW |