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/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/debug/rendering_stats.h" | 9 #include "cc/debug/rendering_stats.h" |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 ~ScopedBeginFrameTask() { | 35 ~ScopedBeginFrameTask() { |
36 TRACE_EVENT_END0(internal::kCategory, event_name_); | 36 TRACE_EVENT_END0(internal::kCategory, event_name_); |
37 } | 37 } |
38 | 38 |
39 private: | 39 private: |
40 const char* event_name_; | 40 const char* event_name_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(ScopedBeginFrameTask); | 42 DISALLOW_COPY_AND_ASSIGN(ScopedBeginFrameTask); |
43 }; | 43 }; |
44 | 44 |
45 void IssueMainThreadRenderingStatsEvent( | 45 void IssueImplThreadRenderingStatsEvent(const RenderingStats& stats); |
46 const RenderingStats::MainThreadRenderingStats& stats); | |
47 void IssueImplThreadRenderingStatsEvent( | |
48 const RenderingStats::ImplThreadRenderingStats& stats); | |
49 void CC_EXPORT IssueDisplayRenderingStatsEvent(); | 46 void CC_EXPORT IssueDisplayRenderingStatsEvent(); |
50 | 47 |
51 } // namespace benchmark_instrumentation | 48 } // namespace benchmark_instrumentation |
52 } // namespace cc | 49 } // namespace cc |
53 | 50 |
54 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ | 51 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ |
OLD | NEW |