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) |
230 static SkBlitRow::Proc32 platform_32_procs_SSE4[] = { | 231 static SkBlitRow::Proc32 platform_32_procs_SSE4[] = { |
231 NULL, // S32_Opaque, | 232 NULL, // S32_Opaque, |
232 S32_Blend_BlitRow32_SSE2, // S32_Blend, | 233 S32_Blend_BlitRow32_SSE2, // S32_Blend, |
233 S32A_Opaque_BlitRow32_SSE4, // S32A_Opaque | 234 S32A_Opaque_BlitRow32_SSE4_asm, // S32A_Opaque |
234 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, | 235 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, |
235 }; | 236 }; |
| 237 #endif |
236 | 238 |
237 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { | 239 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { |
| 240 #if defined(SK_ATT_ASM_SUPPORTED) |
238 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { | 241 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { |
239 return platform_32_procs_SSE4[flags]; | 242 return platform_32_procs_SSE4[flags]; |
240 } else | 243 } else |
| 244 #endif |
241 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 245 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
242 return platform_32_procs_SSE2[flags]; | 246 return platform_32_procs_SSE2[flags]; |
243 } else { | 247 } else { |
244 return NULL; | 248 return NULL; |
245 } | 249 } |
246 } | 250 } |
247 | 251 |
248 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { | 252 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { |
249 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 253 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
250 return Color32_SSE2; | 254 return Color32_SSE2; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 } else { | 401 } else { |
398 return SkPlatformXfermodeFactory_impl(rec, mode); | 402 return SkPlatformXfermodeFactory_impl(rec, mode); |
399 } | 403 } |
400 } | 404 } |
401 | 405 |
402 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); | 406 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
403 | 407 |
404 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 408 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
405 return NULL; | 409 return NULL; |
406 } | 410 } |
OLD | NEW |