| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { | 251 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { |
| 252 return platform_32_procs_SSE4[flags]; | 252 return platform_32_procs_SSE4[flags]; |
| 253 } else | 253 } else |
| 254 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 254 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
| 255 return platform_32_procs_SSE2[flags]; | 255 return platform_32_procs_SSE2[flags]; |
| 256 } else { | 256 } else { |
| 257 return NULL; | 257 return NULL; |
| 258 } | 258 } |
| 259 } | 259 } |
| 260 | 260 |
| 261 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { | |
| 262 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | |
| 263 return Color32_SSE2; | |
| 264 } else { | |
| 265 return NULL; | |
| 266 } | |
| 267 } | |
| 268 | |
| 269 //////////////////////////////////////////////////////////////////////////////// | 261 //////////////////////////////////////////////////////////////////////////////// |
| 270 | 262 |
| 271 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkColorType dstCT, | 263 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkColorType dstCT, |
| 272 SkMask::Format maskFormat, | 264 SkMask::Format maskFormat, |
| 273 SkColor color) { | 265 SkColor color) { |
| 274 if (SkMask::kA8_Format != maskFormat) { | 266 if (SkMask::kA8_Format != maskFormat) { |
| 275 return NULL; | 267 return NULL; |
| 276 } | 268 } |
| 277 | 269 |
| 278 ColorProc proc = NULL; | 270 ColorProc proc = NULL; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 } else { | 389 } else { |
| 398 return SkPlatformXfermodeFactory_impl(rec, mode); | 390 return SkPlatformXfermodeFactory_impl(rec, mode); |
| 399 } | 391 } |
| 400 } | 392 } |
| 401 | 393 |
| 402 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); | 394 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
| 403 | 395 |
| 404 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 396 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
| 405 return NULL; | 397 return NULL; |
| 406 } | 398 } |
| OLD | NEW |