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

Side by Side Diff: include/core/SkTrace.h

Issue 196133033: replace old SK_TRACE_EVENT macros with new TRACE_EVENT ones (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove old trace events Created 6 years, 9 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 | « include/config/SkUserConfig.h ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9 #ifndef SkTrace_DEFINED
10 #define SkTrace_DEFINED
11
12 #ifdef SK_USER_TRACE_INCLUDE_FILE
13
14 /* If your system embeds skia and has complex event logging, in
15 src/config/SkUserConfig.h:
16 - define the three SK_TRACE_EVENT macros to map to your system's
17 equivalents,
18 - define the name of the include file in SK_USER_TRACE_INCLUDE_FILE
19 A trivial example is given in src/utils/SkDebugTrace.h.
20
21 All arguments are const char*. Skia typically passes the name of
22 the object and function (and sometimes region of interest within
23 the function) separated by double colons for 'event'.
24
25 SK_TRACE_EVENT1 and SK_TRACE_EVENT2 take one or two arbitrary
26 name-value pairs that you also want to log. SkStringPrintf() is useful
27 for formatting these values.
28
29 For example:
30 SK_TRACE_EVENT0("GrContext::createAndLockTexture");
31 SK_TRACE_EVENT1("GrDefaultPathRenderer::onDrawPath::renderPasses",
32 "verts", SkStringPrintf("%i", vert - base).c_str());
33 */
34
35 #include SK_USER_TRACE_INCLUDE_FILE
36
37 #else
38
39 #define SK_TRACE_EVENT0(event)
40 #define SK_TRACE_EVENT1(event, name1, value1)
41 #define SK_TRACE_EVENT2(event, name1, value1, name2, value2)
42
43 #endif
44
45 #endif
OLDNEW
« no previous file with comments | « include/config/SkUserConfig.h ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698