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

Unified 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: Move defines to SkPreConfig/SkUserConfig. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: include/core/SkPostConfig.h
===================================================================
--- include/core/SkPostConfig.h (revision 11669)
+++ include/core/SkPostConfig.h (working copy)
@@ -399,3 +399,23 @@
#ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
#define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1
#endif
+
+//////////////////////////////////////////////////////////////////////
+
+#ifndef SK_ATOMICS_PLATFORM_H
+ #if defined(SK_BUILD_FOR_WIN)
+ #define SK_ATOMICS_PLATFORM_H "SkAtomics_win.h"
+ #elif defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
+ #define SK_ATOMICS_PLATFORM_H "SkAtomics_android.h"
+ #else
+ #define SK_ATOMICS_PLATFORM_H "SkAtomics_sync.h"
+ #endif
+#endif
+
+#ifndef SK_MUTEX_PLATFORM_H
+ #if defined(SK_BUILD_FOR_WIN)
+ #define SK_MUTEX_PLATFORM_H "SkMutex_win.h"
+ #else
+ #define SK_MUTEX_PLATFORM_H "SkMutex_pthread.h"
+ #endif
+#endif
« gyp/core.gyp ('K') | « include/core/SkInstCnt.h ('k') | include/core/SkRefCnt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698