OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The Android Open Source Project | 2 * Copyright 2009 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBitmapFilter_opts_SSE2.h" | 8 #include "SkBitmapFilter_opts_SSE2.h" |
9 #include "SkBitmapProcState_opts_SSE2.h" | 9 #include "SkBitmapProcState_opts_SSE2.h" |
10 #include "SkBitmapProcState_opts_SSSE3.h" | 10 #include "SkBitmapProcState_opts_SSSE3.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 return NULL; | 220 return NULL; |
221 } | 221 } |
222 | 222 |
223 static SkBlitRow::Proc32 platform_32_procs_SSE2[] = { | 223 static SkBlitRow::Proc32 platform_32_procs_SSE2[] = { |
224 NULL, // S32_Opaque, | 224 NULL, // S32_Opaque, |
225 S32_Blend_BlitRow32_SSE2, // S32_Blend, | 225 S32_Blend_BlitRow32_SSE2, // S32_Blend, |
226 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque | 226 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque |
227 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, | 227 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, |
228 }; | 228 }; |
229 | 229 |
230 #if defined(SK_ATT_ASM_SUPPORTED) | |
231 static SkBlitRow::Proc32 platform_32_procs_SSE4[] = { | 230 static SkBlitRow::Proc32 platform_32_procs_SSE4[] = { |
232 NULL, // S32_Opaque, | 231 NULL, // S32_Opaque, |
233 S32_Blend_BlitRow32_SSE2, // S32_Blend, | 232 S32_Blend_BlitRow32_SSE2, // S32_Blend, |
234 S32A_Opaque_BlitRow32_SSE4_asm, // S32A_Opaque | 233 S32A_Opaque_BlitRow32_SSE4, // S32A_Opaque |
235 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, | 234 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, |
236 }; | 235 }; |
237 #endif | |
238 | 236 |
239 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { | 237 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { |
240 #if defined(SK_ATT_ASM_SUPPORTED) | |
241 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { | 238 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { |
242 return platform_32_procs_SSE4[flags]; | 239 return platform_32_procs_SSE4[flags]; |
243 } else | 240 } else |
244 #endif | |
245 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 241 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
246 return platform_32_procs_SSE2[flags]; | 242 return platform_32_procs_SSE2[flags]; |
247 } else { | 243 } else { |
248 return NULL; | 244 return NULL; |
249 } | 245 } |
250 } | 246 } |
251 | 247 |
252 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { | 248 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { |
253 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 249 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
254 return Color32_SSE2; | 250 return Color32_SSE2; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 } else { | 397 } else { |
402 return SkPlatformXfermodeFactory_impl(rec, mode); | 398 return SkPlatformXfermodeFactory_impl(rec, mode); |
403 } | 399 } |
404 } | 400 } |
405 | 401 |
406 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); | 402 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
407 | 403 |
408 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 404 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
409 return NULL; | 405 return NULL; |
410 } | 406 } |
OLD | NEW |