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.h" | 9 #include "base/time/time.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 struct CC_EXPORT RenderingStats { | 14 struct CC_EXPORT RenderingStats { |
15 int64 animation_frame_count; | 15 int64 animation_frame_count; |
16 int64 screen_frame_count; | 16 int64 screen_frame_count; |
17 int64 dropped_frame_count; | 17 int64 dropped_frame_count; |
18 base::TimeDelta total_paint_time; | 18 base::TimeDelta total_paint_time; |
19 base::TimeDelta total_record_time; | 19 base::TimeDelta total_record_time; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Outputs the fields in this structure to the provided enumerator. | 61 // Outputs the fields in this structure to the provided enumerator. |
62 void EnumerateFields(Enumerator* enumerator) const; | 62 void EnumerateFields(Enumerator* enumerator) const; |
63 | 63 |
64 // Add fields of |other| to the fields in this structure. | 64 // Add fields of |other| to the fields in this structure. |
65 void Add(const RenderingStats& other); | 65 void Add(const RenderingStats& other); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace cc | 68 } // namespace cc |
69 | 69 |
70 #endif // CC_DEBUG_RENDERING_STATS_H_ | 70 #endif // CC_DEBUG_RENDERING_STATS_H_ |
OLD | NEW |