OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BENCHMARK_INSTRUMENTATION_H_ | 5 #ifndef CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ |
6 #define CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ | 6 #define CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ |
7 | 7 |
8 #include "cc/debug/rendering_stats.h" | 8 #include "cc/debug/rendering_stats.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 23 matching lines...) Expand all Loading... |
34 ~ScopedBeginFrameTask() { | 34 ~ScopedBeginFrameTask() { |
35 TRACE_EVENT_END0(internal::kCategory, event_name_); | 35 TRACE_EVENT_END0(internal::kCategory, event_name_); |
36 } | 36 } |
37 | 37 |
38 private: | 38 private: |
39 const char* event_name_; | 39 const char* event_name_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(ScopedBeginFrameTask); | 41 DISALLOW_COPY_AND_ASSIGN(ScopedBeginFrameTask); |
42 }; | 42 }; |
43 | 43 |
44 void IssueMainThreadRenderingStatsEvent(const MainThreadRenderingStats& stats); | 44 void IssueMainThreadRenderingStatsEvent( |
45 void IssueImplThreadRenderingStatsEvent(const ImplThreadRenderingStats& stats); | 45 const RenderingStats::MainThreadRenderingStats& stats); |
| 46 void IssueImplThreadRenderingStatsEvent( |
| 47 const RenderingStats::ImplThreadRenderingStats& stats); |
46 | 48 |
47 } // namespace benchmark_instrumentation | 49 } // namespace benchmark_instrumentation |
48 } // namespace cc | 50 } // namespace cc |
49 | 51 |
50 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ | 52 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ |
OLD | NEW |