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_RENDERING_STATS_H_ | 5 #ifndef CC_RENDERING_STATS_H_ |
6 #define CC_RENDERING_STATS_H_ | 6 #define CC_RENDERING_STATS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "cc/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 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.co
m/138641. | 15 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.co
m/138641. |
16 int64 numAnimationFrames; | 16 int64 numAnimationFrames; |
17 int64 numFramesSentToScreen; | 17 int64 numFramesSentToScreen; |
18 int64 droppedFrameCount; | 18 int64 droppedFrameCount; |
19 base::TimeDelta totalPaintTime; | 19 base::TimeDelta totalPaintTime; |
20 base::TimeDelta totalRasterizeTime; | 20 base::TimeDelta totalRasterizeTime; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Outputs the fields in this structure to the provided enumerator. | 56 // Outputs the fields in this structure to the provided enumerator. |
57 void EnumerateFields(Enumerator* enumerator) const; | 57 void EnumerateFields(Enumerator* enumerator) const; |
58 | 58 |
59 // Add fields of |other| to the fields in this structure. | 59 // Add fields of |other| to the fields in this structure. |
60 void Add(const RenderingStats& other); | 60 void Add(const RenderingStats& other); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace cc | 63 } // namespace cc |
64 | 64 |
65 #endif // CC_RENDERING_STATS_H_ | 65 #endif // CC_RENDERING_STATS_H_ |
OLD | NEW |