| 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 "base/debug/trace_event.h" | 5 #include "base/trace_event/trace_event.h" |
| 6 #include "skia/ext/event_tracer_impl.h" | 6 #include "skia/ext/event_tracer_impl.h" |
| 7 #include "third_party/skia/include/utils/SkEventTracer.h" | 7 #include "third_party/skia/include/utils/SkEventTracer.h" |
| 8 | 8 |
| 9 namespace skia { | 9 namespace skia { |
| 10 | 10 |
| 11 class SkChromiumEventTracer: public SkEventTracer { | 11 class SkChromiumEventTracer: public SkEventTracer { |
| 12 const uint8_t* getCategoryGroupEnabled(const char* name) override; | 12 const uint8_t* getCategoryGroupEnabled(const char* name) override; |
| 13 const char* getCategoryGroupName(const uint8_t* categoryEnabledFlag) override; | 13 const char* getCategoryGroupName(const uint8_t* categoryEnabledFlag) override; |
| 14 SkEventTracer::Handle addTraceEvent(char phase, | 14 SkEventTracer::Handle addTraceEvent(char phase, |
| 15 const uint8_t* categoryEnabledFlag, | 15 const uint8_t* categoryEnabledFlag, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 } | 66 } |
| 67 | 67 |
| 68 } // namespace skia | 68 } // namespace skia |
| 69 | 69 |
| 70 | 70 |
| 71 void InitSkiaEventTracer() { | 71 void InitSkiaEventTracer() { |
| 72 // Initialize the binding to Skia's tracing events. Skia will | 72 // Initialize the binding to Skia's tracing events. Skia will |
| 73 // take ownership of and clean up the memory allocated here. | 73 // take ownership of and clean up the memory allocated here. |
| 74 SkEventTracer::SetInstance(new skia::SkChromiumEventTracer()); | 74 SkEventTracer::SetInstance(new skia::SkChromiumEventTracer()); |
| 75 } | 75 } |
| OLD | NEW |