| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Note: when adding new members, please remember to update EnumerateFields | 31 // Note: when adding new members, please remember to update EnumerateFields |
| 32 // and Add in rendering_stats.cc. | 32 // and Add in rendering_stats.cc. |
| 33 | 33 |
| 34 int64 frame_count; | 34 int64 frame_count; |
| 35 base::TimeDelta rasterize_time; | 35 base::TimeDelta rasterize_time; |
| 36 base::TimeDelta analysis_time; | 36 base::TimeDelta analysis_time; |
| 37 int64 rasterized_pixel_count; | 37 int64 rasterized_pixel_count; |
| 38 int64 visible_content_area; | 38 int64 visible_content_area; |
| 39 int64 approximated_visible_content_area; | 39 int64 approximated_visible_content_area; |
| 40 | 40 |
| 41 base::TimeDelta draw_duration; |
| 42 base::TimeDelta draw_duration_estimate; |
| 43 base::TimeDelta begin_main_frame_to_commit_duration; |
| 44 base::TimeDelta begin_main_frame_to_commit_duration_estimate; |
| 45 base::TimeDelta commit_to_activate_duration; |
| 46 base::TimeDelta commit_to_activate_duration_estimate; |
| 47 |
| 41 ImplThreadRenderingStats(); | 48 ImplThreadRenderingStats(); |
| 42 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const; | 49 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const; |
| 43 void Add(const ImplThreadRenderingStats& other); | 50 void Add(const ImplThreadRenderingStats& other); |
| 44 }; | 51 }; |
| 45 | 52 |
| 46 struct CC_EXPORT RenderingStats { | 53 struct CC_EXPORT RenderingStats { |
| 47 MainThreadRenderingStats main_stats; | 54 MainThreadRenderingStats main_stats; |
| 48 ImplThreadRenderingStats impl_stats; | 55 ImplThreadRenderingStats impl_stats; |
| 49 | 56 |
| 50 // Add fields of |other| to the fields in this structure. | 57 // Add fields of |other| to the fields in this structure. |
| 51 void Add(const RenderingStats& other); | 58 void Add(const RenderingStats& other); |
| 52 }; | 59 }; |
| 53 | 60 |
| 54 } // namespace cc | 61 } // namespace cc |
| 55 | 62 |
| 56 #endif // CC_DEBUG_RENDERING_STATS_H_ | 63 #endif // CC_DEBUG_RENDERING_STATS_H_ |
| OLD | NEW |