| 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 <stdint.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 12 #include "base/trace_event/trace_event_argument.h" | 13 #include "base/trace_event/trace_event_argument.h" |
| 13 #include "base/values.h" | 14 #include "base/values.h" |
| 14 #include "cc/base/cc_export.h" | 15 #include "cc/base/cc_export.h" |
| 15 #include "cc/debug/traced_value.h" | 16 #include "cc/debug/traced_value.h" |
| 16 | 17 |
| 17 namespace cc { | 18 namespace cc { |
| 18 | 19 |
| 19 struct CC_EXPORT RenderingStats { | 20 struct CC_EXPORT RenderingStats { |
| 20 // Stores a sequence of TimeDelta objects. | 21 // Stores a sequence of TimeDelta objects. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 private: | 35 private: |
| 35 std::vector<base::TimeDelta> values; | 36 std::vector<base::TimeDelta> values; |
| 36 }; | 37 }; |
| 37 | 38 |
| 38 RenderingStats(); | 39 RenderingStats(); |
| 39 ~RenderingStats(); | 40 ~RenderingStats(); |
| 40 | 41 |
| 41 // Note: when adding new members, please remember to update Add in | 42 // Note: when adding new members, please remember to update Add in |
| 42 // rendering_stats.cc. | 43 // rendering_stats.cc. |
| 43 | 44 |
| 44 int64 frame_count; | 45 int64_t frame_count; |
| 45 int64 visible_content_area; | 46 int64_t visible_content_area; |
| 46 int64 approximated_visible_content_area; | 47 int64_t approximated_visible_content_area; |
| 47 int64 checkerboarded_visible_content_area; | 48 int64_t checkerboarded_visible_content_area; |
| 48 int64 checkerboarded_no_recording_content_area; | 49 int64_t checkerboarded_no_recording_content_area; |
| 49 int64 checkerboarded_needs_raster_content_area; | 50 int64_t checkerboarded_needs_raster_content_area; |
| 50 | 51 |
| 51 TimeDeltaList draw_duration; | 52 TimeDeltaList draw_duration; |
| 52 TimeDeltaList draw_duration_estimate; | 53 TimeDeltaList draw_duration_estimate; |
| 53 TimeDeltaList begin_main_frame_to_commit_duration; | 54 TimeDeltaList begin_main_frame_to_commit_duration; |
| 54 TimeDeltaList begin_main_frame_to_commit_duration_estimate; | 55 TimeDeltaList begin_main_frame_to_commit_duration_estimate; |
| 55 TimeDeltaList commit_to_activate_duration; | 56 TimeDeltaList commit_to_activate_duration; |
| 56 TimeDeltaList commit_to_activate_duration_estimate; | 57 TimeDeltaList commit_to_activate_duration_estimate; |
| 57 | 58 |
| 58 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsTraceableData() | 59 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsTraceableData() |
| 59 const; | 60 const; |
| 60 void Add(const RenderingStats& other); | 61 void Add(const RenderingStats& other); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace cc | 64 } // namespace cc |
| 64 | 65 |
| 65 #endif // CC_DEBUG_RENDERING_STATS_H_ | 66 #endif // CC_DEBUG_RENDERING_STATS_H_ |
| OLD | NEW |