Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(670)

Side by Side Diff: src/opts/SkXfermode_opts_SSE2.h

Issue 219243009: Revert of Xfermode: SSE2 implementation of multiply_modeproc (Closed) Base URL: https://skia.googlesource.com/skia.git@xfermode
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/opts/SkColor_opts_SSE2.h ('k') | src/opts/SkXfermode_opts_SSE2.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « src/opts/SkColor_opts_SSE2.h ('k') | src/opts/SkXfermode_opts_SSE2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698