| 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 19 matching lines...) Expand all Loading... |
| 30 int64 num_layers_drawn; | 30 int64 num_layers_drawn; |
| 31 int64 num_missing_tiles; | 31 int64 num_missing_tiles; |
| 32 int64 total_deferred_image_decode_count; | 32 int64 total_deferred_image_decode_count; |
| 33 int64 total_deferred_image_cache_hit_count; | 33 int64 total_deferred_image_cache_hit_count; |
| 34 int64 total_image_gathering_count; | 34 int64 total_image_gathering_count; |
| 35 int64 total_tiles_analyzed; | 35 int64 total_tiles_analyzed; |
| 36 int64 solid_color_tiles_analyzed; | 36 int64 solid_color_tiles_analyzed; |
| 37 base::TimeDelta total_deferred_image_decode_time; | 37 base::TimeDelta total_deferred_image_decode_time; |
| 38 base::TimeDelta total_image_gathering_time; | 38 base::TimeDelta total_image_gathering_time; |
| 39 base::TimeDelta total_tile_analysis_time; | 39 base::TimeDelta total_tile_analysis_time; |
| 40 base::TimeDelta average_impl_thread_to_main_thread_time; |
| 40 // Note: when adding new members, please remember to update EnumerateFields | 41 // Note: when adding new members, please remember to update EnumerateFields |
| 41 // and Add in rendering_stats.cc. | 42 // and Add in rendering_stats.cc. |
| 42 | 43 |
| 43 RenderingStats(); | 44 RenderingStats(); |
| 44 | 45 |
| 45 // In conjunction with EnumerateFields, this allows the embedder to | 46 // In conjunction with EnumerateFields, this allows the embedder to |
| 46 // enumerate the values in this structure without | 47 // enumerate the values in this structure without |
| 47 // having to embed references to its specific member variables. This | 48 // having to embed references to its specific member variables. This |
| 48 // simplifies the addition of new fields to this type. | 49 // simplifies the addition of new fields to this type. |
| 49 class Enumerator { | 50 class Enumerator { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 61 // Outputs the fields in this structure to the provided enumerator. | 62 // Outputs the fields in this structure to the provided enumerator. |
| 62 void EnumerateFields(Enumerator* enumerator) const; | 63 void EnumerateFields(Enumerator* enumerator) const; |
| 63 | 64 |
| 64 // Add fields of |other| to the fields in this structure. | 65 // Add fields of |other| to the fields in this structure. |
| 65 void Add(const RenderingStats& other); | 66 void Add(const RenderingStats& other); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace cc | 69 } // namespace cc |
| 69 | 70 |
| 70 #endif // CC_DEBUG_RENDERING_STATS_H_ | 71 #endif // CC_DEBUG_RENDERING_STATS_H_ |
| OLD | NEW |