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:
parent
f4c2c527dd
commit
725a295c50
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user