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" |
11 #include "SkBitmapScaler.h" | 11 #include "SkBitmapScaler.h" |
12 #include "SkBlitMask.h" | 12 #include "SkBlitMask.h" |
13 #include "SkBlitRect_opts_SSE2.h" | 13 #include "SkBlitRect_opts_SSE2.h" |
14 #include "SkBlitRow.h" | 14 #include "SkBlitRow.h" |
15 #include "SkBlitRow_opts_SSE2.h" | 15 #include "SkBlitRow_opts_SSE2.h" |
16 #include "SkBlitRow_opts_SSE4.h" | 16 #include "SkBlitRow_opts_SSE4.h" |
17 #include "SkBlurImage_opts_SSE2.h" | 17 #include "SkBlurImage_opts_SSE2.h" |
| 18 #include "SkBlurImage_opts_SSE4.h" |
18 #include "SkMorphology_opts.h" | 19 #include "SkMorphology_opts.h" |
19 #include "SkMorphology_opts_SSE2.h" | 20 #include "SkMorphology_opts_SSE2.h" |
20 #include "SkRTConf.h" | 21 #include "SkRTConf.h" |
21 #include "SkUtils.h" | 22 #include "SkUtils.h" |
22 #include "SkUtils_opts_SSE2.h" | 23 #include "SkUtils_opts_SSE2.h" |
23 #include "SkXfermode.h" | 24 #include "SkXfermode.h" |
24 #include "SkXfermode_proccoeff.h" | 25 #include "SkXfermode_proccoeff.h" |
25 | 26 |
26 #if defined(_MSC_VER) && defined(_WIN64) | 27 #if defined(_MSC_VER) && defined(_WIN64) |
27 #include <intrin.h> | 28 #include <intrin.h> |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 352 |
352 //////////////////////////////////////////////////////////////////////////////// | 353 //////////////////////////////////////////////////////////////////////////////// |
353 | 354 |
354 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, | 355 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, |
355 SkBoxBlurProc* boxBlurY, | 356 SkBoxBlurProc* boxBlurY, |
356 SkBoxBlurProc* boxBlurXY, | 357 SkBoxBlurProc* boxBlurXY, |
357 SkBoxBlurProc* boxBlurYX) { | 358 SkBoxBlurProc* boxBlurYX) { |
358 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION | 359 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION |
359 return false; | 360 return false; |
360 #else | 361 #else |
361 if (!supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 362 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { |
362 return false; | 363 return SkBoxBlurGetPlatformProcs_SSE4(boxBlurX, boxBlurY, boxBlurXY, box
BlurYX); |
363 } | 364 } |
364 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, boxBlur
YX); | 365 else if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
| 366 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, box
BlurYX); |
| 367 } |
| 368 return false; |
365 #endif | 369 #endif |
366 } | 370 } |
367 | 371 |
368 //////////////////////////////////////////////////////////////////////////////// | 372 //////////////////////////////////////////////////////////////////////////////// |
369 | 373 |
370 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff&
rec, | 374 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff&
rec, |
371 SkXfermode::Mode
mode); | 375 SkXfermode::Mode
mode); |
372 | 376 |
373 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, | 377 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, |
374 SkXfermode::Mode mode); | 378 SkXfermode::Mode mode); |
(...skipping 13 matching lines...) Expand all Loading... |
388 } else { | 392 } else { |
389 return SkPlatformXfermodeFactory_impl(rec, mode); | 393 return SkPlatformXfermodeFactory_impl(rec, mode); |
390 } | 394 } |
391 } | 395 } |
392 | 396 |
393 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); | 397 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
394 | 398 |
395 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 399 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
396 return NULL; | 400 return NULL; |
397 } | 401 } |
OLD | NEW |