aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPreConfig.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-27 20:41:03 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-27 20:41:03 +0000
commitc8de7a311ab3550e43030f89b04aa3600c6c87bc (patch)
tree1851d9a30caed3544166a10e7efa2a57d89c631f /include/core/SkPreConfig.h
parent78dd91d1afab51dd7cae870d4864410ced839b4b (diff)
Ensure SSE2/3 is always enabled on Android.
R=mtklein@google.com, reed@google.com Author: djsollen@google.com Review URL: https://codereview.chromium.org/132883008 git-svn-id: http://skia.googlecode.com/svn/trunk@13204 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPreConfig.h')
-rw-r--r--include/core/SkPreConfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
index 2aa4d822e0..6a9b16070a 100644
--- a/include/core/SkPreConfig.h
+++ b/include/core/SkPreConfig.h
@@ -142,6 +142,12 @@
#endif
#endif
+// Android x86 NDK ABI requires SSE3 support
+#if defined(SK_BUILD_FOR_ANDROID)
+ #undef SK_CPU_SSE_LEVEL
+ #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE3
+#endif
+
//////////////////////////////////////////////////////////////////////
// ARM defines