OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "cc/debug/frame_viewer_instrumentation.h" | 5 #include "cc/debug/frame_viewer_instrumentation.h" |
6 | 6 |
| 7 #include "cc/debug/traced_value.h" |
| 8 |
7 namespace cc { | 9 namespace cc { |
8 namespace frame_viewer_instrumentation { | 10 namespace frame_viewer_instrumentation { |
9 | 11 |
10 const char kCategoryLayerTree[] = | 12 const char kCategoryLayerTree[] = |
11 TRACE_DISABLED_BY_DEFAULT("cc.debug") "," | 13 TRACE_DISABLED_BY_DEFAULT("cc.debug") "," |
12 TRACE_DISABLED_BY_DEFAULT("cc.debug.quads") "," | 14 TRACE_DISABLED_BY_DEFAULT("cc.debug.quads") "," |
13 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.layers"); | 15 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.layers"); |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 69 } |
68 | 70 |
69 bool IsTracingLayerTreeSnapshots() { | 71 bool IsTracingLayerTreeSnapshots() { |
70 bool category_enabled; | 72 bool category_enabled; |
71 TRACE_EVENT_CATEGORY_GROUP_ENABLED(kCategoryLayerTree, &category_enabled); | 73 TRACE_EVENT_CATEGORY_GROUP_ENABLED(kCategoryLayerTree, &category_enabled); |
72 return category_enabled; | 74 return category_enabled; |
73 } | 75 } |
74 | 76 |
75 } // namespace frame_viewer_instrumentation | 77 } // namespace frame_viewer_instrumentation |
76 } // namespace cc | 78 } // namespace cc |
OLD | NEW |