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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 case kErodeY_SkMorphologyProcType: | 343 case kErodeY_SkMorphologyProcType: |
344 return SkErodeY_SSE2; | 344 return SkErodeY_SSE2; |
345 default: | 345 default: |
346 return NULL; | 346 return NULL; |
347 } | 347 } |
348 } | 348 } |
349 | 349 |
350 //////////////////////////////////////////////////////////////////////////////// | 350 //////////////////////////////////////////////////////////////////////////////// |
351 | 351 |
352 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, | 352 bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, |
353 SkBoxBlurProc* boxBlurY, | |
354 SkBoxBlurProc* boxBlurXY, | 353 SkBoxBlurProc* boxBlurXY, |
355 SkBoxBlurProc* boxBlurYX) { | 354 SkBoxBlurProc* boxBlurYX) { |
356 #ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION | |
357 return false; | |
358 #else | |
359 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { | 355 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { |
360 return SkBoxBlurGetPlatformProcs_SSE4(boxBlurX, boxBlurY, boxBlurXY, box
BlurYX); | 356 return SkBoxBlurGetPlatformProcs_SSE4(boxBlurX, boxBlurXY, boxBlurYX); |
361 } | 357 } |
362 else if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { | 358 else if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
363 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, box
BlurYX); | 359 return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurXY, boxBlurYX); |
364 } | 360 } |
365 return false; | 361 return false; |
366 #endif | |
367 } | 362 } |
368 | 363 |
369 //////////////////////////////////////////////////////////////////////////////// | 364 //////////////////////////////////////////////////////////////////////////////// |
370 | 365 |
371 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff&
rec, | 366 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff&
rec, |
372 SkXfermode::Mode
mode); | 367 SkXfermode::Mode
mode); |
373 | 368 |
374 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, | 369 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, |
375 SkXfermode::Mode mode); | 370 SkXfermode::Mode mode); |
376 | 371 |
(...skipping 12 matching lines...) Expand all Loading... |
389 } else { | 384 } else { |
390 return SkPlatformXfermodeFactory_impl(rec, mode); | 385 return SkPlatformXfermodeFactory_impl(rec, mode); |
391 } | 386 } |
392 } | 387 } |
393 | 388 |
394 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); | 389 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
395 | 390 |
396 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 391 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
397 return NULL; | 392 return NULL; |
398 } | 393 } |
OLD | NEW |