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

Side by Side Diff: src/utils/SkEventTracer.cpp

Issue 1313203003: Remove include of stdlib.h from SkTypes.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up qsort conversion. Created 5 years, 4 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 | « src/pathops/SkPathOpsTypes.cpp ('k') | src/utils/SkParse.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkAtomics.h" 8 #include "SkAtomics.h"
9 #include "SkEventTracer.h" 9 #include "SkEventTracer.h"
10 #include "SkLazyPtr.h" 10 #include "SkLazyPtr.h"
11 11
12 #include <stdlib.h>
13
12 class SkDefaultEventTracer : public SkEventTracer { 14 class SkDefaultEventTracer : public SkEventTracer {
13 SkEventTracer::Handle 15 SkEventTracer::Handle
14 addTraceEvent(char phase, 16 addTraceEvent(char phase,
15 const uint8_t* categoryEnabledFlag, 17 const uint8_t* categoryEnabledFlag,
16 const char* name, 18 const char* name,
17 uint64_t id, 19 uint64_t id,
18 int numArgs, 20 int numArgs,
19 const char** argNames, 21 const char** argNames,
20 const uint8_t* argTypes, 22 const uint8_t* argTypes,
21 const uint64_t* argValues, 23 const uint64_t* argValues,
(...skipping 25 matching lines...) Expand all
47 // An atomic load during process shutdown is probably overkill, but safe ove rkill. 49 // An atomic load during process shutdown is probably overkill, but safe ove rkill.
48 atexit([](){ SkDELETE(sk_atomic_load(&gUserTracer, sk_memory_order_acquire)) ; }); 50 atexit([](){ SkDELETE(sk_atomic_load(&gUserTracer, sk_memory_order_acquire)) ; });
49 } 51 }
50 52
51 SkEventTracer* SkEventTracer::GetInstance() { 53 SkEventTracer* SkEventTracer::GetInstance() {
52 if (SkEventTracer* tracer = sk_atomic_load(&gUserTracer, sk_memory_order_acq uire)) { 54 if (SkEventTracer* tracer = sk_atomic_load(&gUserTracer, sk_memory_order_acq uire)) {
53 return tracer; 55 return tracer;
54 } 56 }
55 return gDefaultTracer.get(); 57 return gDefaultTracer.get();
56 } 58 }
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsTypes.cpp ('k') | src/utils/SkParse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698