OLD | NEW |
| (Empty) |
1 #ifndef SkXfermode_opts_SSE2_DEFINED | |
2 #define SkXfermode_opts_SSE2_DEFINED | |
3 | |
4 #include "SkXfermode_proccoeff.h" | |
5 | |
6 typedef __m128i (*SkXfermodeProcSIMD)(__m128i src, __m128i dst); | |
7 | |
8 class SkSSE2ProcCoeffXfermode : public SkProcCoeffXfermode { | |
9 public: | |
10 SkSSE2ProcCoeffXfermode(const ProcCoeff& rec, SkXfermode::Mode mode, | |
11 SkXfermodeProcSIMD procSIMD) | |
12 : INHERITED(rec, mode), fProcSIMD(procSIMD) {} | |
13 | |
14 virtual void xfer32(SkPMColor dst[], const SkPMColor src[], int count, | |
15 const SkAlpha aa[]) const SK_OVERRIDE; | |
16 virtual void xfer16(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT
src, | |
17 int count, const SkAlpha* SK_RESTRICT aa) const SK_OVERR
IDE; | |
18 | |
19 SK_TO_STRING_OVERRIDE() | |
20 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkSSE2ProcCoeffXfermode) | |
21 | |
22 private: | |
23 SkSSE2ProcCoeffXfermode(SkReadBuffer& buffer); | |
24 | |
25 SkXfermodeProcSIMD fProcSIMD; | |
26 typedef SkProcCoeffXfermode INHERITED; | |
27 }; | |
28 | |
29 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff& rec, | |
30 SkXfermode::Mode mode); | |
31 | |
32 #endif // SkXfermode_opts_SSE2_DEFINED | |
OLD | NEW |