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

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

Issue 19808007: Split atomic and mutex implementations and make inlinable. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Address dependency comments. Created 7 years 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/SkInstCnt.h ('k') | include/core/SkRefCnt.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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 # define SK_SIZE_T_SPECIFIER "%zu" 370 # define SK_SIZE_T_SPECIFIER "%zu"
371 # endif 371 # endif
372 #endif 372 #endif
373 373
374 ////////////////////////////////////////////////////////////////////// 374 //////////////////////////////////////////////////////////////////////
375 375
376 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 376 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
377 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 377 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1
378 #endif 378 #endif
379 379
380 //////////////////////////////////////////////////////////////////////
381
382 #ifndef SK_ATOMICS_PLATFORM_H
383 # if defined(SK_BUILD_FOR_WIN)
384 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_win.h"
385 # elif defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
386 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_android.h"
387 # else
388 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_sync.h"
389 # endif
390 #endif
391
392 #ifndef SK_MUTEX_PLATFORM_H
393 # if defined(SK_BUILD_FOR_WIN)
394 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h"
395 # else
396 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h"
397 # endif
398 #endif
399
380 #endif // SkPostConfig_DEFINED 400 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkInstCnt.h ('k') | include/core/SkRefCnt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698