Index: src/core/SkOpts.cpp |
diff --git a/src/core/SkOpts.cpp b/src/core/SkOpts.cpp |
index 9ccc66de0840f291ea3182aa97e9ae7efadce4c7..14d28e113b4448a5be2698cd5aa5ed8c4c6c4658 100644 |
--- a/src/core/SkOpts.cpp |
+++ b/src/core/SkOpts.cpp |
@@ -7,6 +7,8 @@ |
#include "SkOnce.h" |
#include "SkOpts.h" |
+#define SK_OPTS_NS portable |
+#include "SkBlurImageFilter_opts.h" |
#include "SkXfermode_opts.h" |
#if defined(SK_CPU_X86) |
@@ -47,6 +49,11 @@ namespace SkOpts { |
decltype(memset32) memset32 = portable::memsetT<uint32_t>; |
decltype(create_xfermode) create_xfermode = SkCreate4pxXfermode; |
+ static const auto x = portable::kX, y = portable::kY; |
+ decltype(box_blur_xx) box_blur_xx = portable::box_blur<x,x>; |
+ decltype(box_blur_xy) box_blur_xy = portable::box_blur<x,y>; |
+ decltype(box_blur_yx) box_blur_yx = portable::box_blur<y,x>; |
+ |
// Each Init_foo() is defined in src/opts/SkOpts_foo.cpp. |
void Init_sse2(); |
void Init_ssse3(); |