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

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

Issue 99483003: Make leak counters thread-safe (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: bug# Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkOnce.h ('k') | src/core/SkOnce.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 #ifndef SkPostConfig_DEFINED 8 #ifndef SkPostConfig_DEFINED
9 #define SkPostConfig_DEFINED 9 #define SkPostConfig_DEFINED
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 # define SK_CRASH() do { SkNO_RETURN_HINT(); } while (true) 113 # define SK_CRASH() do { SkNO_RETURN_HINT(); } while (true)
114 # endif 114 # endif
115 #endif 115 #endif
116 116
117 /////////////////////////////////////////////////////////////////////////////// 117 ///////////////////////////////////////////////////////////////////////////////
118 118
119 /** 119 /**
120 * SK_ENABLE_INST_COUNT controlls printing how many reference counted objects 120 * SK_ENABLE_INST_COUNT controlls printing how many reference counted objects
121 * are still held on exit. 121 * are still held on exit.
122 * Defaults to 1 in DEBUG and 0 in RELEASE. 122 * Defaults to 1 in DEBUG and 0 in RELEASE.
123 * FIXME: currently always 0, since it fails if multiple threads run at once
124 * (see skbug.com/1219 ).
125 */ 123 */
126 #ifndef SK_ENABLE_INST_COUNT 124 #ifndef SK_ENABLE_INST_COUNT
127 # ifdef SK_DEBUG 125 # ifdef SK_DEBUG
128 # define SK_ENABLE_INST_COUNT 0 126 // Only enabled for static builds, because instance counting relies on static
127 // variables in functions defined in header files.
128 # define SK_ENABLE_INST_COUNT !defined(SKIA_DLL)
129 # else 129 # else
130 # define SK_ENABLE_INST_COUNT 0 130 # define SK_ENABLE_INST_COUNT 0
131 # endif 131 # endif
132 #endif 132 #endif
133 133
134 /////////////////////////////////////////////////////////////////////////////// 134 ///////////////////////////////////////////////////////////////////////////////
135 135
136 #ifdef SK_BUILD_FOR_WIN 136 #ifdef SK_BUILD_FOR_WIN
137 # ifndef WIN32_LEAN_AND_MEAN 137 # ifndef WIN32_LEAN_AND_MEAN
138 # define WIN32_LEAN_AND_MEAN 138 # define WIN32_LEAN_AND_MEAN
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 #ifndef SK_MUTEX_PLATFORM_H 386 #ifndef SK_MUTEX_PLATFORM_H
387 # if defined(SK_BUILD_FOR_WIN) 387 # if defined(SK_BUILD_FOR_WIN)
388 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h" 388 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h"
389 # else 389 # else
390 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h" 390 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h"
391 # endif 391 # endif
392 #endif 392 #endif
393 393
394 #endif // SkPostConfig_DEFINED 394 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkOnce.h ('k') | src/core/SkOnce.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698