Index: src/opts/opts_check_arm.cpp |
diff --git a/src/opts/opts_check_arm.cpp b/src/opts/opts_check_arm.cpp |
index a9afa75b07eddde3b304a9f9a251eaffa71afe5f..a9f7db7cb01d628f1914b69cfe711081ffb50dc0 100644 |
--- a/src/opts/opts_check_arm.cpp |
+++ b/src/opts/opts_check_arm.cpp |
@@ -19,6 +19,7 @@ |
#include "SkUtilsArm.h" |
#include "SkMorphology_opts.h" |
#include "SkMorphology_opts_neon.h" |
+#include "SkBlurImage_opts_neon.h" |
#if defined(SK_CPU_LENDIAN) && !SK_ARM_NEON_IS_NONE |
extern "C" void memset16_neon(uint16_t dst[], uint16_t value, int count); |
@@ -91,3 +92,19 @@ SkMorphologyProc SkMorphologyGetPlatformProc(SkMorphologyProcType type) { |
} |
#endif |
} |
+ |
+bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, |
+ SkBoxBlurProc* boxBlurY, |
+ SkBoxBlurProc* boxBlurXY, |
+ SkBoxBlurProc* boxBlurYX) { |
+#if SK_ARM_NEON_IS_NONE |
+ return NULL; |
+#else |
+#if SK_ARM_NEON_IS_DYNAMIC |
+ if (!sk_cpu_arm_has_neon()) { |
+ return NULL; |
+ } |
+#endif |
+ return SkBoxBlurGetPlatformProcs_NEON(boxBlurX, boxBlurY, boxBlurXY, boxBlurYX); |
+#endif |
+} |