| 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 int64_t vsyncCount; |
| 12 int numAnimationFrames; | 12 int64_t rendererFrameCount; |
| 13 int numFramesSentToScreen; | 13 int64_t mainAnimationFrameCount; |
| 14 int droppedFrameCount; | 14 int64_t implAnimationFrameCount; |
| 15 int64_t droppedFrameCount; |
| 15 double totalPaintTimeInSeconds; | 16 double totalPaintTimeInSeconds; |
| 16 double totalRasterizeTimeInSeconds; | 17 double totalRasterizeTimeInSeconds; |
| 17 double totalCommitTimeInSeconds; | 18 double totalCommitTimeInSeconds; |
| 18 size_t totalCommitCount; | 19 int64_t totalCommitCount; |
| 19 size_t numImplThreadScrolls; | 20 int64_t implThreadScrollCount; |
| 20 size_t numMainThreadScrolls; | 21 int64_t mainThreadScrollCount; |
| 21 | 22 |
| 22 CCRenderingStats() | 23 CCRenderingStats() |
| 23 : numAnimationFrames(0) | 24 : vsyncCount(0) |
| 24 , numFramesSentToScreen(0) | 25 , rendererFrameCount(0) |
| 26 , mainAnimationFrameCount(0) |
| 27 , implAnimationFrameCount(0) |
| 25 , droppedFrameCount(0) | 28 , droppedFrameCount(0) |
| 26 , totalPaintTimeInSeconds(0) | 29 , totalPaintTimeInSeconds(0) |
| 27 , totalRasterizeTimeInSeconds(0) | 30 , totalRasterizeTimeInSeconds(0) |
| 28 , totalCommitTimeInSeconds(0) | 31 , totalCommitTimeInSeconds(0) |
| 29 , totalCommitCount(0) | 32 , totalCommitCount(0) |
| 30 , numImplThreadScrolls(0) | 33 , implThreadScrollCount(0) |
| 31 , numMainThreadScrolls(0) | 34 , mainThreadScrollCount(0) |
| 32 { | 35 { |
| 33 } | 36 } |
| 34 }; | 37 }; |
| 35 | 38 |
| 36 } | 39 } |
| 37 | 40 |
| 38 #endif | 41 #endif |
| OLD | NEW |