| 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 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.co
m/138641. |
| 12 int numAnimationFrames; | 12 int numAnimationFrames; |
| 13 int numFramesSentToScreen; | 13 int numFramesSentToScreen; |
| 14 int droppedFrameCount; | 14 int droppedFrameCount; |
| 15 double totalPaintTimeInSeconds; | 15 double totalPaintTimeInSeconds; |
| 16 double totalRasterizeTimeInSeconds; | 16 double totalRasterizeTimeInSeconds; |
| 17 double totalCommitTimeInSeconds; | 17 double totalCommitTimeInSeconds; |
| 18 size_t totalCommitCount; | 18 size_t totalCommitCount; |
| 19 bool didImplThreadScroll; |
| 19 | 20 |
| 20 CCRenderingStats() | 21 CCRenderingStats() |
| 21 : numAnimationFrames(0) | 22 : numAnimationFrames(0) |
| 22 , numFramesSentToScreen(0) | 23 , numFramesSentToScreen(0) |
| 23 , droppedFrameCount(0) | 24 , droppedFrameCount(0) |
| 24 , totalPaintTimeInSeconds(0) | 25 , totalPaintTimeInSeconds(0) |
| 25 , totalRasterizeTimeInSeconds(0) | 26 , totalRasterizeTimeInSeconds(0) |
| 26 , totalCommitTimeInSeconds(0) | 27 , totalCommitTimeInSeconds(0) |
| 27 , totalCommitCount(0) | 28 , totalCommitCount(0) |
| 29 , didImplThreadScroll(false) |
| 28 { | 30 { |
| 29 } | 31 } |
| 30 }; | 32 }; |
| 31 | 33 |
| 32 } | 34 } |
| 33 | 35 |
| 34 #endif | 36 #endif |
| OLD | NEW |