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

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

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 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/utils/SkDeferredCanvas.cpp ('k') | src/utils/SkGatherPixelRefsAndRects.h » ('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 "SkEventTracer.h" 8 #include "SkEventTracer.h"
9 #include "SkOnce.h" 9 #include "SkOnce.h"
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 if (NULL == current_instance) { 47 if (NULL == current_instance) {
48 SkEventTracer::SetInstance(SkNEW(SkDefaultEventTracer)); 48 SkEventTracer::SetInstance(SkNEW(SkDefaultEventTracer));
49 } 49 }
50 atexit(cleanup_tracer); 50 atexit(cleanup_tracer);
51 } 51 }
52 52
53 53
54 SkEventTracer* SkEventTracer::GetInstance() { 54 SkEventTracer* SkEventTracer::GetInstance() {
55 SK_DECLARE_STATIC_ONCE(once); 55 SK_DECLARE_STATIC_ONCE(once);
56 SkOnce(&once, intialize_default_tracer, SkEventTracer::gInstance); 56 SkOnce(&once, intialize_default_tracer, SkEventTracer::gInstance);
57 SkASSERT(NULL != SkEventTracer::gInstance); 57 SkASSERT(SkEventTracer::gInstance);
58 return SkEventTracer::gInstance; 58 return SkEventTracer::gInstance;
59 } 59 }
OLDNEW
« no previous file with comments | « src/utils/SkDeferredCanvas.cpp ('k') | src/utils/SkGatherPixelRefsAndRects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698