Only set USE_ANDROID_NDK_CPU_FEATURES if it's not already been explicitly set
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 11 Mar 2014 22:57:21 +0000 (22:57 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 11 Mar 2014 22:57:21 +0000 (22:57 +0000)
R=djsollen@google.com, reed@google.com
BUG=skia:

Author: george@mozilla.com

Review URL: https://codereview.chromium.org/189263015

git-svn-id: http://skia.googlecode.com/svn/trunk@13750 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkUtilsArm.cpp

index 87a4a7fb0ad2caea1aadffab1f73ea679c69f46e..58cf1157c307c604f59a16f43a923c87d309a809 100644 (file)
 // cpu-features helper library to detect NEON at runtime. See
 // http://crbug.com/164154 to see why this is needed in Chromium
 // for Android.
-#if defined(SK_BUILD_FOR_ANDROID)
-#  define USE_ANDROID_NDK_CPU_FEATURES 1
-#else
-#  define USE_ANDROID_NDK_CPU_FEATURES 0
+#if !defined(USE_ANDROID_NDK_CPU_FEATURES)
+#  if defined(SK_BUILD_FOR_ANDROID)
+#    define USE_ANDROID_NDK_CPU_FEATURES 1
+#  else
+#    define USE_ANDROID_NDK_CPU_FEATURES 0
+#  endif
 #endif
 
 #if USE_ANDROID_NDK_CPU_FEATURES