Index: src/opts/SkXfermode_opts_arm.cpp |
diff --git a/src/opts/SkXfermode_opts_arm.cpp b/src/opts/SkXfermode_opts_arm.cpp |
index dd09551ae8ad76470b725e878e7f382d5045ae7c..05c330fe8146c77d4558a9c1a3c0bc2402c15ce7 100644 |
--- a/src/opts/SkXfermode_opts_arm.cpp |
+++ b/src/opts/SkXfermode_opts_arm.cpp |
@@ -9,25 +9,20 @@ |
#include "SkXfermode_proccoeff.h" |
#include "SkUtilsArm.h" |
-extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_neon(const ProcCoeff& rec, |
- SkXfermode::Mode mode); |
+// If we find we do have NEON, we'll call this method from SkXfermodes_opts_arm_neon.cpp. |
+SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_neon(const ProcCoeff& rec, |
+ SkXfermode::Mode mode); |
-extern SkXfermodeProc SkPlatformXfermodeProcFactory_impl_neon(SkXfermode::Mode mode); |
- |
-SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, |
- SkXfermode::Mode mode) { |
+// If we don't have NEON, we'll call this method and return NULL. |
+SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, SkXfermode::Mode mode); |
+SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, SkXfermode::Mode mode) { |
return NULL; |
} |
-SkXfermodeProc SkPlatformXfermodeProcFactory_impl(SkXfermode::Mode mode) { |
- return NULL; |
-} |
- |
-SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, |
- SkXfermode::Mode mode) { |
+SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, SkXfermode::Mode mode); |
+SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, SkXfermode::Mode mode) { |
return SK_ARM_NEON_WRAP(SkPlatformXfermodeFactory_impl)(rec, mode); |
} |
-SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
- return SK_ARM_NEON_WRAP(SkPlatformXfermodeProcFactory_impl)(mode); |
-} |
+SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
+SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { return NULL; } |