| 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_DEVTOOLS_INSTRUMENTATION_H_ | 5 #ifndef CC_DEBUG_DEVTOOLS_INSTRUMENTATION_H_ |
| 6 #define CC_DEBUG_DEVTOOLS_INSTRUMENTATION_H_ | 6 #define CC_DEBUG_DEVTOOLS_INSTRUMENTATION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
| 12 #include "base/trace_event/trace_event_argument.h" | 13 #include "base/trace_event/trace_event_argument.h" |
| 13 | 14 |
| 14 namespace cc { | 15 namespace cc { |
| 15 namespace devtools_instrumentation { | 16 namespace devtools_instrumentation { |
| 16 | 17 |
| 17 namespace internal { | 18 namespace internal { |
| 18 const char kCategory[] = TRACE_DISABLED_BY_DEFAULT("devtools.timeline"); | 19 const char kCategory[] = TRACE_DISABLED_BY_DEFAULT("devtools.timeline"); |
| 19 const char kCategoryFrame[] = | 20 const char kCategoryFrame[] = |
| 20 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.frame"); | 21 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.frame"); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 TRACE_EVENT_INSTANT2( | 175 TRACE_EVENT_INSTANT2( |
| 175 internal::kCategoryFrame, internal::kNeedsBeginFrameChanged, | 176 internal::kCategoryFrame, internal::kNeedsBeginFrameChanged, |
| 176 TRACE_EVENT_SCOPE_THREAD, internal::kLayerTreeId, layer_tree_host_id, | 177 TRACE_EVENT_SCOPE_THREAD, internal::kLayerTreeId, layer_tree_host_id, |
| 177 internal::kData, NeedsBeginFrameData(new_value)); | 178 internal::kData, NeedsBeginFrameData(new_value)); |
| 178 } | 179 } |
| 179 | 180 |
| 180 } // namespace devtools_instrumentation | 181 } // namespace devtools_instrumentation |
| 181 } // namespace cc | 182 } // namespace cc |
| 182 | 183 |
| 183 #endif // CC_DEBUG_DEVTOOLS_INSTRUMENTATION_H_ | 184 #endif // CC_DEBUG_DEVTOOLS_INSTRUMENTATION_H_ |
| OLD | NEW |