Chromium Code Reviews| Index: cc/debug/rendering_stats.h |
| diff --git a/cc/debug/rendering_stats.h b/cc/debug/rendering_stats.h |
| index 7b1898a9daac5af5bbe41ec1db72f137a0bffbd6..bdf7dfcd01a05cb3b5d0e1bc840b40b46356803f 100644 |
| --- a/cc/debug/rendering_stats.h |
| +++ b/cc/debug/rendering_stats.h |
| @@ -31,51 +31,24 @@ struct CC_EXPORT RenderingStats { |
| base::TimeDelta GetLastTimeDelta() const; |
| private: |
| - std::list<base::TimeDelta> values; |
| + std::vector<base::TimeDelta> values; |
| }; |
| - struct CC_EXPORT MainThreadRenderingStats { |
| - // Note: when adding new members, please remember to update Add in |
| - // rendering_stats.cc. |
| + // Note: when adding new members, please remember to update Add in |
| + // rendering_stats.cc. |
| - base::TimeDelta paint_time; |
| - int64 painted_pixel_count; |
| - base::TimeDelta record_time; |
| - int64 recorded_pixel_count; |
| + int64 frame_count = 0; |
|
vmpstr
2014/11/07 19:57:32
Is this allowed?
|
| + int64 visible_content_area = 0; |
| + int64 approximated_visible_content_area = 0; |
| - MainThreadRenderingStats(); |
| - ~MainThreadRenderingStats(); |
| - scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() |
| - const; |
| - void Add(const MainThreadRenderingStats& other); |
| - }; |
| - |
| - struct CC_EXPORT ImplThreadRenderingStats { |
| - // Note: when adding new members, please remember to update Add in |
| - // rendering_stats.cc. |
| - |
| - int64 frame_count; |
| - int64 visible_content_area; |
| - int64 approximated_visible_content_area; |
| - |
| - TimeDeltaList draw_duration; |
| - TimeDeltaList draw_duration_estimate; |
| - TimeDeltaList begin_main_frame_to_commit_duration; |
| - TimeDeltaList begin_main_frame_to_commit_duration_estimate; |
| - TimeDeltaList commit_to_activate_duration; |
| - TimeDeltaList commit_to_activate_duration_estimate; |
| - |
| - ImplThreadRenderingStats(); |
| - ~ImplThreadRenderingStats(); |
| - scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() |
| - const; |
| - void Add(const ImplThreadRenderingStats& other); |
| - }; |
| - |
| - MainThreadRenderingStats main_stats; |
| - ImplThreadRenderingStats impl_stats; |
| + TimeDeltaList draw_duration; |
| + TimeDeltaList draw_duration_estimate; |
| + TimeDeltaList begin_main_frame_to_commit_duration; |
| + TimeDeltaList begin_main_frame_to_commit_duration_estimate; |
| + TimeDeltaList commit_to_activate_duration; |
| + TimeDeltaList commit_to_activate_duration_estimate; |
| - // Add fields of |other| to the fields in this structure. |
| + scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const; |
| void Add(const RenderingStats& other); |
| }; |