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

Unified Diff: include/core/SkThread_platform.h

Issue 12739007: refactor android defines to implicitly assume NDK compliance unless it is explicitly marked as bein… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 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/SkThread_platform.h
diff --git a/include/core/SkThread_platform.h b/include/core/SkThread_platform.h
index 298e9cb16a49f6c1100c614bb69130386d2fc7ff..faad40208602bbf1fe400418952e60fbce96af44 100644
--- a/include/core/SkThread_platform.h
+++ b/include/core/SkThread_platform.h
@@ -12,7 +12,7 @@
#if defined(SK_BUILD_FOR_ANDROID)
-#if defined(SK_BUILD_FOR_ANDROID_NDK)
+#if !defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
borenet 2013/03/13 12:08:19 I understand the desire to make as small a modific
djsollen 2013/03/13 12:26:41 I thought of doing that as well, but it makes the
borenet 2013/03/13 12:42:12 SGTM
#include <stdint.h>
@@ -51,7 +51,7 @@ static inline __attribute__((always_inline)) int32_t sk_atomic_conditional_inc(i
}
static inline __attribute__((always_inline)) void sk_membar_aquire__after_atomic_conditional_inc() { }
-#else // !SK_BUILD_FOR_ANDROID_NDK
+#else // SK_BUILD_FOR_ANDROID_FRAMEWORK
/* The platform atomics operations are slightly more efficient than the
* GCC built-ins, so use them.
@@ -86,7 +86,7 @@ static inline __attribute__((always_inline)) void sk_membar_aquire__after_atomic
//android_atomic_aquire_store(0, &dummy);
}
-#endif // !SK_BUILD_FOR_ANDROID_NDK
+#endif // SK_BUILD_FOR_ANDROID_FRAMEWORK
#else // !SK_BUILD_FOR_ANDROID

Powered by Google App Engine
This is Rietveld 408576698