Ensure SSE2/3 is always enabled on Android.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 27 Jan 2014 20:41:03 +0000 (20:41 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 27 Jan 2014 20:41:03 +0000 (20:41 +0000)
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

include/core/SkPreConfig.h

index 2aa4d82..6a9b160 100644 (file)
     #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