commit-bot@chromium.org | e997c26 | 2013-08-28 15:07:58 +0000 | [diff] [blame] | 1 | |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 2 | #include "SkColor.h" |
| 3 | #include "SkColorPriv.h" |
commit-bot@chromium.org | e997c26 | 2013-08-28 15:07:58 +0000 | [diff] [blame] | 4 | #include "SkBlitMask.h" |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 5 | #include "SkUtilsArm.h" |
| 6 | #include "SkBlitMask_opts_arm_neon.h" |
commit-bot@chromium.org | e997c26 | 2013-08-28 15:07:58 +0000 | [diff] [blame] | 7 | |
| 8 | SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkBitmap::Config dstConfig, |
| 9 | SkMask::Format maskFormat, |
| 10 | SkColor color) { |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 11 | #if SK_ARM_NEON_IS_NONE |
| 12 | return NULL; |
| 13 | #else |
commit-bot@chromium.org | 0e8c8ef | 2014-02-06 21:27:40 +0000 | [diff] [blame] | 14 | /* ** This has been disabled until we can diagnose and fix the SIGILL generated |
| 15 | ** in the NEON code. See http://skbug.com/2067 for details. |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 16 | #if SK_ARM_NEON_IS_DYNAMIC |
| 17 | if (!sk_cpu_arm_has_neon()) { |
| 18 | return NULL; |
| 19 | } |
| 20 | #endif |
| 21 | if ((SkBitmap::kARGB_8888_Config == dstConfig) && |
| 22 | (SkMask::kA8_Format == maskFormat)) { |
| 23 | return D32_A8_Factory_neon(color); |
| 24 | } |
commit-bot@chromium.org | 0e8c8ef | 2014-02-06 21:27:40 +0000 | [diff] [blame] | 25 | */ |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 26 | #endif |
| 27 | |
| 28 | // We don't need to handle the SkMask::kLCD16_Format case as the default |
| 29 | // LCD16 will call us through SkBlitMask::PlatformBlitRowProcs16() |
| 30 | |
commit-bot@chromium.org | e997c26 | 2013-08-28 15:07:58 +0000 | [diff] [blame] | 31 | return NULL; |
| 32 | } |
| 33 | |
| 34 | SkBlitMask::BlitLCD16RowProc SkBlitMask::PlatformBlitRowProcs16(bool isOpaque) { |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 35 | if (isOpaque) { |
| 36 | return SK_ARM_NEON_WRAP(SkBlitLCD16OpaqueRow); |
| 37 | } else { |
| 38 | return SK_ARM_NEON_WRAP(SkBlitLCD16Row); |
| 39 | } |
commit-bot@chromium.org | e997c26 | 2013-08-28 15:07:58 +0000 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | SkBlitMask::RowProc SkBlitMask::PlatformRowProcs(SkBitmap::Config dstConfig, |
| 43 | SkMask::Format maskFormat, |
| 44 | RowFlags flags) { |
| 45 | return NULL; |
| 46 | } |