Allow building on platforms with SSE2 but not SSSE3 by adding an #ifdef.

Patch from Wei James (wistoch@gmail).

http://codereview.appspot.com/6124050/




git-svn-id: http://skia.googlecode.com/svn/trunk@3770 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
tomhudson@google.com 2012-04-27 12:52:51 +00:00
parent f4c2c527dd
commit 725a295c50

View File

@ -88,6 +88,7 @@ static bool cachedHasSSSE3() {
void SkBitmapProcState::platformProcs() {
if (cachedHasSSSE3()) {
#if defined (__SSSE3__)
if (fSampleProc32 == S32_opaque_D32_filter_DX) {
fSampleProc32 = S32_opaque_D32_filter_DX_SSSE3;
} else if (fSampleProc32 == S32_alpha_D32_filter_DX) {
@ -99,6 +100,7 @@ void SkBitmapProcState::platformProcs() {
} else if (fSampleProc32 == S32_alpha_D32_filter_DXDY) {
fSampleProc32 = S32_alpha_D32_filter_DXDY_SSSE3;
}
#endif
} else if (cachedHasSSE2()) {
if (fSampleProc32 == S32_opaque_D32_filter_DX) {
fSampleProc32 = S32_opaque_D32_filter_DX_SSE2;