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

Side by Side Diff: skia/ext/trace_event.h

Issue 153063002: plumbing for skia trace events into Chrome's about://tracing framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SKIA_EXT_TRACE_EVENT_H_
nduca 2014/02/04 01:15:19 unless skia/ folder has its own subclassing conven
humper 2014/02/04 19:58:08 Done.
6 #define SKIA_EXT_TRACE_EVENT_H_
7
8 #include "third_party/skia/include/utils/SkEventTracer.h"
9
10 namespace skia {
11
12 class SkChromiumEventTracer: public SkEventTracer {
13 virtual const uint8_t* getCategoryGroupEnabled(const char* name);
14 virtual const char* getCategoryGroupName(
15 const uint8_t* categoryEnabledFlag);
16 virtual SkEventTracer::Handle
17 addTraceEvent(char phase,
18 const uint8_t* categoryEnabledFlag,
19 const char* name,
20 uint64_t id,
21 int32_t numArgs,
22 const char** argNames,
23 const uint8_t* argTypes,
24 const uint64_t* argValues,
25 uint8_t flags);
26 virtual void
27 updateTraceEventDuration(const uint8_t* categoryEnabledFlag,
28 const char *name,
29 SkEventTracer::Handle handle);
30 };
31
32 } // namespace skia
33
34 #endif // SKIA_EXT_TRACE_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698