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