Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 | 1 |
| 2 #include "SkColor.h" | |
| 3 #include "SkColorPriv.h" | |
| 2 #include "SkBlitMask.h" | 4 #include "SkBlitMask.h" |
| 5 #include "SkUtilsArm.h" | |
| 6 #include "SkBlitMask_opts_arm_neon.h" | |
|
mtklein
2013/11/26 14:44:01
Looks like this file is missing?
kevin.petit.not.used.account
2013/11/26 16:23:32
Done.
| |
| 3 | 7 |
| 4 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkBitmap::Config dstConfig, | 8 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkBitmap::Config dstConfig, |
| 5 SkMask::Format maskFormat, | 9 SkMask::Format maskFormat, |
| 6 SkColor color) { | 10 SkColor color) { |
| 11 #if SK_ARM_NEON_IS_NONE | |
| 12 return NULL; | |
| 13 #else | |
| 14 #if SK_ARM_NEON_IS_DYNAMIC | |
| 15 if (!sk_cpu_arm_has_neon()) { | |
| 16 return NULL; | |
| 17 } | |
| 18 #endif | |
| 19 if ((SkBitmap::kARGB_8888_Config == dstConfig) && | |
| 20 (SkMask::kA8_Format == maskFormat)) { | |
| 21 | |
|
mtklein
2013/11/26 14:44:01
stray newline here
kevin.petit.not.used.account
2013/11/26 16:23:32
Done.
| |
| 22 return D32_A8_Factory_neon(color); | |
| 23 } | |
| 24 #endif | |
| 25 | |
| 26 // We don't need to handle the SkMask::kLCD16_Format case as the default | |
| 27 // LCD16 will call us through SkBlitMask::PlatformBlitRowProcs16() | |
| 28 | |
| 7 return NULL; | 29 return NULL; |
| 8 } | 30 } |
| 9 | 31 |
| 10 SkBlitMask::BlitLCD16RowProc SkBlitMask::PlatformBlitRowProcs16(bool isOpaque) { | 32 SkBlitMask::BlitLCD16RowProc SkBlitMask::PlatformBlitRowProcs16(bool isOpaque) { |
| 11 return NULL; | 33 if (isOpaque) { |
| 34 return SK_ARM_NEON_WRAP(SkBlitLCD16OpaqueRow); | |
| 35 } else { | |
| 36 return SK_ARM_NEON_WRAP(SkBlitLCD16Row); | |
| 37 } | |
| 12 } | 38 } |
| 13 | 39 |
| 14 SkBlitMask::RowProc SkBlitMask::PlatformRowProcs(SkBitmap::Config dstConfig, | 40 SkBlitMask::RowProc SkBlitMask::PlatformRowProcs(SkBitmap::Config dstConfig, |
| 15 SkMask::Format maskFormat, | 41 SkMask::Format maskFormat, |
| 16 RowFlags flags) { | 42 RowFlags flags) { |
| 17 return NULL; | 43 return NULL; |
| 18 } | 44 } |
| OLD | NEW |