blob: fb178a89722fe38fb7fd69a483c6023b305e44c1 [file] [log] [blame]
[email protected]0fb25002012-10-12 07:20:021// Copyright 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
[email protected]cd57cc5a2012-10-12 22:43:414
5#ifndef CCRenderingStats_h
6#define CCRenderingStats_h
7
8namespace cc {
9
10struct CCRenderingStats {
11 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.com/138641.
12 int numAnimationFrames;
13 int numFramesSentToScreen;
14 int droppedFrameCount;
15 double totalPaintTimeInSeconds;
16 double totalRasterizeTimeInSeconds;
17 double totalCommitTimeInSeconds;
18 size_t totalCommitCount;
19 size_t numImplThreadScrolls;
20 size_t numMainThreadScrolls;
21
22 CCRenderingStats()
23 : numAnimationFrames(0)
24 , numFramesSentToScreen(0)
25 , droppedFrameCount(0)
26 , totalPaintTimeInSeconds(0)
27 , totalRasterizeTimeInSeconds(0)
28 , totalCommitTimeInSeconds(0)
29 , totalCommitCount(0)
30 , numImplThreadScrolls(0)
31 , numMainThreadScrolls(0)
32 {
33 }
34};
35
36}
37
38#endif