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

Side by Side Diff: cc/CCRenderingStats.h

Issue 10916292: Adaptively throttle texture uploads (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add tests. Created 8 years, 3 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 WebCore { 8 namespace WebCore {
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;
18 size_t totalCommitCount;
17 19
18 CCRenderingStats() 20 CCRenderingStats()
19 : numAnimationFrames(0) 21 : numAnimationFrames(0)
20 , numFramesSentToScreen(0) 22 , numFramesSentToScreen(0)
21 , droppedFrameCount(0) 23 , droppedFrameCount(0)
22 , totalPaintTimeInSeconds(0) 24 , totalPaintTimeInSeconds(0)
23 , totalRasterizeTimeInSeconds(0) 25 , totalRasterizeTimeInSeconds(0)
26 , totalCommitTimeInSeconds(0)
27 , totalCommitCount(0)
24 { 28 {
25 } 29 }
26 }; 30 };
27 31
28 } 32 }
29 33
30 #endif 34 #endif
OLDNEW
« no previous file with comments | « cc/CCProxy.h ('k') | cc/CCSingleThreadProxy.h » ('j') | cc/CCTextureUpdateController.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698