Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: cc/CCRenderingStats.h

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 size_t numCSyncs;
13 int numFramesSentToScreen; 13 size_t numActiveCSyncs;
14 int droppedFrameCount; 14 size_t numFramesSentToScreen;
15 size_t numAnimationFrames;
16 size_t numAnimationFramesImpl;
dtu 2012/10/04 01:51:36 Can we use thingCount instead of numThings? Also,
brianderson 2012/10/04 20:11:59 Sure, will make it consistent.
17 size_t 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 size_t numImplThreadScrolls;
20 size_t numMainThreadScrolls; 23 size_t numMainThreadScrolls;
21 24
22 CCRenderingStats() 25 CCRenderingStats()
23 : numAnimationFrames(0) 26 : numCSyncs(0)
27 , numActiveCSyncs(0)
24 , numFramesSentToScreen(0) 28 , numFramesSentToScreen(0)
29 , numAnimationFrames(0)
30 , numAnimationFramesImpl(0)
25 , droppedFrameCount(0) 31 , droppedFrameCount(0)
26 , totalPaintTimeInSeconds(0) 32 , totalPaintTimeInSeconds(0)
27 , totalRasterizeTimeInSeconds(0) 33 , totalRasterizeTimeInSeconds(0)
28 , totalCommitTimeInSeconds(0) 34 , totalCommitTimeInSeconds(0)
29 , totalCommitCount(0) 35 , totalCommitCount(0)
30 , numImplThreadScrolls(0) 36 , numImplThreadScrolls(0)
31 , numMainThreadScrolls(0) 37 , numMainThreadScrolls(0)
32 { 38 {
33 } 39 }
34 }; 40 };
35 41
36 } 42 }
37 43
38 #endif 44 #endif
OLDNEW
« cc/CCFrameRateController.cpp ('K') | « cc/CCLayerTreeHostImpl.cpp ('k') | cc/CCScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698