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