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 <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() | 46 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() |
47 const; | 47 const; |
48 void Add(const MainThreadRenderingStats& other); | 48 void Add(const MainThreadRenderingStats& other); |
49 }; | 49 }; |
50 | 50 |
51 struct CC_EXPORT ImplThreadRenderingStats { | 51 struct CC_EXPORT ImplThreadRenderingStats { |
52 // Note: when adding new members, please remember to update Add in | 52 // Note: when adding new members, please remember to update Add in |
53 // rendering_stats.cc. | 53 // rendering_stats.cc. |
54 | 54 |
55 int64 frame_count; | 55 int64 frame_count; |
56 base::TimeDelta rasterize_time; | |
57 base::TimeDelta analysis_time; | |
58 int64 rasterized_pixel_count; | |
59 int64 visible_content_area; | 56 int64 visible_content_area; |
60 int64 approximated_visible_content_area; | 57 int64 approximated_visible_content_area; |
61 | 58 |
62 TimeDeltaList draw_duration; | 59 TimeDeltaList draw_duration; |
63 TimeDeltaList draw_duration_estimate; | 60 TimeDeltaList draw_duration_estimate; |
64 TimeDeltaList begin_main_frame_to_commit_duration; | 61 TimeDeltaList begin_main_frame_to_commit_duration; |
65 TimeDeltaList begin_main_frame_to_commit_duration_estimate; | 62 TimeDeltaList begin_main_frame_to_commit_duration_estimate; |
66 TimeDeltaList commit_to_activate_duration; | 63 TimeDeltaList commit_to_activate_duration; |
67 TimeDeltaList commit_to_activate_duration_estimate; | 64 TimeDeltaList commit_to_activate_duration_estimate; |
68 | 65 |
69 ImplThreadRenderingStats(); | 66 ImplThreadRenderingStats(); |
70 ~ImplThreadRenderingStats(); | 67 ~ImplThreadRenderingStats(); |
71 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() | 68 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() |
72 const; | 69 const; |
73 void Add(const ImplThreadRenderingStats& other); | 70 void Add(const ImplThreadRenderingStats& other); |
74 }; | 71 }; |
75 | 72 |
76 MainThreadRenderingStats main_stats; | 73 MainThreadRenderingStats main_stats; |
77 ImplThreadRenderingStats impl_stats; | 74 ImplThreadRenderingStats impl_stats; |
78 | 75 |
79 // Add fields of |other| to the fields in this structure. | 76 // Add fields of |other| to the fields in this structure. |
80 void Add(const RenderingStats& other); | 77 void Add(const RenderingStats& other); |
81 }; | 78 }; |
82 | 79 |
83 } // namespace cc | 80 } // namespace cc |
84 | 81 |
85 #endif // CC_DEBUG_RENDERING_STATS_H_ | 82 #endif // CC_DEBUG_RENDERING_STATS_H_ |
OLD | NEW |