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

Unified Diff: src/opts/SkXfermode_opts.h

Issue 1264543006: Port SkXfermode opts to SkOpts.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 5 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
« no previous file with comments | « src/opts/SkOpts_sse2.cpp ('k') | src/opts/SkXfermode_opts_arm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkXfermode_opts.h
diff --git a/src/core/Sk4pxXfermode.h b/src/opts/SkXfermode_opts.h
similarity index 96%
rename from src/core/Sk4pxXfermode.h
rename to src/opts/SkXfermode_opts.h
index ad822edb8b609f32d7db0e29e0e7ef796258af1e..6bc76fe559a9c0f6685aafc2a6941f530f4890e0 100644
--- a/src/core/Sk4pxXfermode.h
+++ b/src/opts/SkXfermode_opts.h
@@ -16,13 +16,6 @@
// Each gets its own independent instantiation by wrapping in an anonymous namespace.
namespace {
-#if defined(SK_CPU_ARM32) && !defined(SK_ARM_HAS_NEON)
- // Signals SkXfermode.cpp to look for runtime-detected NEON.
- static SkProcCoeffXfermode* SkCreate4pxXfermode(const ProcCoeff& rec, SkXfermode::Mode mode) {
- return nullptr;
- }
-#else
-
// Most xfermodes can be done most efficiently 4 pixels at a time in 8 or 16-bit fixed point.
#define XFERMODE(Name) static Sk4px SK_VECTORCALL Name(Sk4px s, Sk4px d)
@@ -283,7 +276,7 @@ private:
typedef SkProcCoeffXfermode INHERITED;
};
-static SkProcCoeffXfermode* SkCreate4pxXfermode(const ProcCoeff& rec, SkXfermode::Mode mode) {
+static SkXfermode* SkCreate4pxXfermode(const ProcCoeff& rec, SkXfermode::Mode mode) {
switch (mode) {
#define CASE(Mode) case SkXfermode::k##Mode##_Mode: \
return SkNEW_ARGS(Sk4pxXfermode, (rec, mode, &Mode, &xfer_aa<Mode>))
@@ -323,8 +316,6 @@ static SkProcCoeffXfermode* SkCreate4pxXfermode(const ProcCoeff& rec, SkXfermode
return nullptr;
}
-#endif
-
} // namespace
#endif//Sk4pxXfermode_DEFINED
« no previous file with comments | « src/opts/SkOpts_sse2.cpp ('k') | src/opts/SkXfermode_opts_arm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698