| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "base/trace_event/trace_event_argument.h" | 12 #include "base/trace_event/trace_event_argument.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "cc/base/cc_export.h" | |
| 15 #include "cc/debug/traced_value.h" | 14 #include "cc/debug/traced_value.h" |
| 16 | 15 |
| 17 namespace cc { | 16 namespace cc { |
| 18 | 17 |
| 19 struct CC_EXPORT RenderingStats { | 18 struct RenderingStats { |
| 20 // Stores a sequence of TimeDelta objects. | 19 // Stores a sequence of TimeDelta objects. |
| 21 class CC_EXPORT TimeDeltaList { | 20 class TimeDeltaList { |
| 22 public: | 21 public: |
| 23 TimeDeltaList(); | 22 TimeDeltaList(); |
| 24 ~TimeDeltaList(); | 23 ~TimeDeltaList(); |
| 25 | 24 |
| 26 void Append(base::TimeDelta value); | 25 void Append(base::TimeDelta value); |
| 27 void AddToTracedValue(const char* name, | 26 void AddToTracedValue(const char* name, |
| 28 base::trace_event::TracedValue* list_value) const; | 27 base::trace_event::TracedValue* list_value) const; |
| 29 | 28 |
| 30 void Add(const TimeDeltaList& other); | 29 void Add(const TimeDeltaList& other); |
| 31 | 30 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 53 TimeDeltaList commit_to_activate_duration_estimate; | 52 TimeDeltaList commit_to_activate_duration_estimate; |
| 54 | 53 |
| 55 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsTraceableData() | 54 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsTraceableData() |
| 56 const; | 55 const; |
| 57 void Add(const RenderingStats& other); | 56 void Add(const RenderingStats& other); |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 } // namespace cc | 59 } // namespace cc |
| 61 | 60 |
| 62 #endif // CC_DEBUG_RENDERING_STATS_H_ | 61 #endif // CC_DEBUG_RENDERING_STATS_H_ |
| OLD | NEW |