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

Unified Diff: src/opts/SkXfermode_opts_arm_neon.h

Issue 26627004: ARM Skia NEON patches - 30 - Xfermode: NEON modeprocs (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add a workaround for gcc4.6 Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: src/opts/SkXfermode_opts_arm_neon.h
diff --git a/src/opts/SkXfermode_opts_arm_neon.h b/src/opts/SkXfermode_opts_arm_neon.h
new file mode 100644
index 0000000000000000000000000000000000000000..702b2160a7a74b8420f9cdbc7f77f5377d4d5fb2
--- /dev/null
+++ b/src/opts/SkXfermode_opts_arm_neon.h
@@ -0,0 +1,27 @@
+#ifndef SkXfermode_opts_arm_neon_DEFINED
+#define SkXfermode_opts_arm_neon_DEFINED
+
+#include "SkXfermode_proccoeff.h"
+
+class SkNEONProcCoeffXfermode : public SkProcCoeffXfermode {
+public:
+ SkNEONProcCoeffXfermode(const ProcCoeff& rec, SkXfermode::Mode mode,
+ void* procSIMD)
+ : INHERITED(rec, mode), fProcSIMD(procSIMD) {}
+
+ virtual void xfer32(SkPMColor dst[], const SkPMColor src[], int count,
+ const SkAlpha aa[]) const SK_OVERRIDE;
+
+ SK_DEVELOPER_TO_STRING()
+ SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkNEONProcCoeffXfermode)
+
+private:
+ SkNEONProcCoeffXfermode(SkFlattenableReadBuffer& buffer);
+
+ // void* is used to avoid pulling arm_neon.h in the core and having to build
+ // it with -mfpu=neon.
+ void* fProcSIMD;
+ typedef SkProcCoeffXfermode INHERITED;
+};
+
+#endif //#ifdef SkXfermode_opts_arm_neon_DEFINED

Powered by Google App Engine
This is Rietveld 408576698