1 #ifndef SkXfermode_opts_arm_neon_DEFINED 2 #define SkXfermode_opts_arm_neon_DEFINED 3 4 #include "SkXfermode_proccoeff.h" 5 6 class SkNEONProcCoeffXfermode : public SkProcCoeffXfermode { 7 public: SkNEONProcCoeffXfermode(const ProcCoeff & rec,SkXfermode::Mode mode,void * procSIMD)8 SkNEONProcCoeffXfermode(const ProcCoeff& rec, SkXfermode::Mode mode, 9 void* procSIMD) 10 : INHERITED(rec, mode), fProcSIMD(procSIMD) {} 11 12 void xfer32(SkPMColor dst[], const SkPMColor src[], int count, 13 const SkAlpha aa[]) const override; 14 void xfer16(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, 15 int count, const SkAlpha* SK_RESTRICT aa) const override; 16 17 SK_TO_STRING_OVERRIDE() 18 19 private: 20 // void* is used to avoid pulling arm_neon.h in the core and having to build 21 // it with -mfpu=neon. 22 void* fProcSIMD; 23 typedef SkProcCoeffXfermode INHERITED; 24 }; 25 26 extern SkPMColor srcatop_modeproc_neon(SkPMColor src, SkPMColor dst); 27 extern SkPMColor dstatop_modeproc_neon(SkPMColor src, SkPMColor dst); 28 extern SkPMColor xor_modeproc_neon(SkPMColor src, SkPMColor dst); 29 extern SkPMColor plus_modeproc_neon(SkPMColor src, SkPMColor dst); 30 extern SkPMColor modulate_modeproc_neon(SkPMColor src, SkPMColor dst); 31 32 #endif //#ifdef SkXfermode_opts_arm_neon_DEFINED 33