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" |
| 9 #include "cc/cc_export.h" |
| 10 |
8 namespace cc { | 11 namespace cc { |
9 | 12 |
10 struct RenderingStats { | 13 struct CC_EXPORT RenderingStats { |
11 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.co
m/138641. | 14 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.co
m/138641. |
12 int numAnimationFrames; | 15 int64 numAnimationFrames; |
13 int numFramesSentToScreen; | 16 int64 numFramesSentToScreen; |
14 int droppedFrameCount; | 17 int64 droppedFrameCount; |
15 double totalPaintTimeInSeconds; | 18 double totalPaintTimeInSeconds; |
16 double totalRasterizeTimeInSeconds; | 19 double totalRasterizeTimeInSeconds; |
17 double totalCommitTimeInSeconds; | 20 double totalCommitTimeInSeconds; |
18 size_t totalCommitCount; | 21 size_t totalCommitCount; |
19 size_t numImplThreadScrolls; | 22 int64 totalPixelsPainted; |
20 size_t numMainThreadScrolls; | 23 int64 totalPixelsRasterized; |
| 24 int64 numImplThreadScrolls; |
| 25 int64 numMainThreadScrolls; |
21 | 26 |
22 RenderingStats() | 27 RenderingStats(); |
23 : numAnimationFrames(0) | |
24 , numFramesSentToScreen(0) | |
25 , droppedFrameCount(0) | |
26 , totalPaintTimeInSeconds(0) | |
27 , totalRasterizeTimeInSeconds(0) | |
28 , totalCommitTimeInSeconds(0) | |
29 , totalCommitCount(0) | |
30 , numImplThreadScrolls(0) | |
31 , numMainThreadScrolls(0) | |
32 { | |
33 } | |
34 }; | 28 }; |
35 | 29 |
36 } | 30 } // namespace cc |
37 | 31 |
38 #endif // CC_RENDERING_STATS_H_ | 32 #endif // CC_RENDERING_STATS_H_ |
OLD | NEW |