Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: skia/ext/event_tracer_impl.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « skia/ext/benchmarking_canvas.cc ('k') | skia/ext/image_operations.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « skia/ext/benchmarking_canvas.cc ('k') | skia/ext/image_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698