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 CCRenderingStats_h | 5 #ifndef CCRenderingStats_h |
6 #define CCRenderingStats_h | 6 #define CCRenderingStats_h |
7 | 7 |
8 namespace cc { | 8 namespace cc { |
9 | 9 |
10 struct CCRenderingStats { | 10 struct CCRenderingStats { |
11 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.co m/138641. | 11 uint64_t compositorSyncCount; |
dtu
2012/10/04 21:41:09
nit: Sorry, int64_t is preferred to uint64_t in th
brianderson
2012/10/05 00:17:32
Ok, will change to int64_t.
| |
12 int numAnimationFrames; | 12 uint64_t compositorSyncActiveCount; |
13 int numFramesSentToScreen; | 13 uint64_t compositorFrameCount; |
14 int droppedFrameCount; | 14 uint64_t mainAnimationFrameCount; |
15 uint64_t implAnimationFrameCount; | |
16 uint64_t droppedFrameCount; | |
15 double totalPaintTimeInSeconds; | 17 double totalPaintTimeInSeconds; |
16 double totalRasterizeTimeInSeconds; | 18 double totalRasterizeTimeInSeconds; |
17 double totalCommitTimeInSeconds; | 19 double totalCommitTimeInSeconds; |
18 size_t totalCommitCount; | 20 uint64_t totalCommitCount; |
19 size_t numImplThreadScrolls; | 21 uint64_t implThreadScrollCount; |
20 size_t numMainThreadScrolls; | 22 uint64_t mainThreadScrollCount; |
21 | 23 |
22 CCRenderingStats() | 24 CCRenderingStats() |
23 : numAnimationFrames(0) | 25 : compositorSyncCount(0) |
24 , numFramesSentToScreen(0) | 26 , compositorSyncActiveCount(0) |
27 , compositorFrameCount(0) | |
28 , mainAnimationFrameCount(0) | |
29 , implAnimationFrameCount(0) | |
25 , droppedFrameCount(0) | 30 , droppedFrameCount(0) |
26 , totalPaintTimeInSeconds(0) | 31 , totalPaintTimeInSeconds(0) |
27 , totalRasterizeTimeInSeconds(0) | 32 , totalRasterizeTimeInSeconds(0) |
28 , totalCommitTimeInSeconds(0) | 33 , totalCommitTimeInSeconds(0) |
29 , totalCommitCount(0) | 34 , totalCommitCount(0) |
30 , numImplThreadScrolls(0) | 35 , implThreadScrollCount(0) |
31 , numMainThreadScrolls(0) | 36 , mainThreadScrollCount(0) |
32 { | 37 { |
33 } | 38 } |
34 }; | 39 }; |
35 | 40 |
36 } | 41 } |
37 | 42 |
38 #endif | 43 #endif |
OLD | NEW |