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 CC_DEBUG_RENDERING_STATS_H_ | 5 #ifndef CC_DEBUG_RENDERING_STATS_H_ |
6 #define CC_DEBUG_RENDERING_STATS_H_ | 6 #define CC_DEBUG_RENDERING_STATS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 RenderingStats(); | 38 RenderingStats(); |
39 ~RenderingStats(); | 39 ~RenderingStats(); |
40 | 40 |
41 // Note: when adding new members, please remember to update Add in | 41 // Note: when adding new members, please remember to update Add in |
42 // rendering_stats.cc. | 42 // rendering_stats.cc. |
43 | 43 |
44 int64 frame_count; | 44 int64 frame_count; |
45 int64 visible_content_area; | 45 int64 visible_content_area; |
46 int64 approximated_visible_content_area; | 46 int64 approximated_visible_content_area; |
| 47 int64 checkerboarded_visible_content_area; |
47 | 48 |
48 TimeDeltaList draw_duration; | 49 TimeDeltaList draw_duration; |
49 TimeDeltaList draw_duration_estimate; | 50 TimeDeltaList draw_duration_estimate; |
50 TimeDeltaList begin_main_frame_to_commit_duration; | 51 TimeDeltaList begin_main_frame_to_commit_duration; |
51 TimeDeltaList begin_main_frame_to_commit_duration_estimate; | 52 TimeDeltaList begin_main_frame_to_commit_duration_estimate; |
52 TimeDeltaList commit_to_activate_duration; | 53 TimeDeltaList commit_to_activate_duration; |
53 TimeDeltaList commit_to_activate_duration_estimate; | 54 TimeDeltaList commit_to_activate_duration_estimate; |
54 | 55 |
55 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsTraceableData() | 56 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsTraceableData() |
56 const; | 57 const; |
57 void Add(const RenderingStats& other); | 58 void Add(const RenderingStats& other); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace cc | 61 } // namespace cc |
61 | 62 |
62 #endif // CC_DEBUG_RENDERING_STATS_H_ | 63 #endif // CC_DEBUG_RENDERING_STATS_H_ |
OLD | NEW |