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