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

Unified Diff: src/opts/SkOpts_neon.cpp

Issue 1264103004: Port SkBlurImage opts to SkOpts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: typo Created 5 years, 4 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/SkOpts_neon.cpp
diff --git a/src/opts/SkOpts_neon.cpp b/src/opts/SkOpts_neon.cpp
index 775cdd4bbcea601a6ddacad61bcd0b29fc1c741e..f06898d3ec7891f28cb7f296049ec0328008aee6 100644
--- a/src/opts/SkOpts_neon.cpp
+++ b/src/opts/SkOpts_neon.cpp
@@ -7,6 +7,8 @@
#include "SkFloatingPoint.h"
#include "SkOpts.h"
+#define SK_OPTS_NS neon
+#include "SkBlurImage_opts.h"
#include "SkXfermode_opts.h"
namespace neon { // This helps identify methods from this file when debugging / profiling.
@@ -71,5 +73,10 @@ namespace SkOpts {
memset16 = neon::memset16;
memset32 = neon::memset32;
create_xfermode = SkCreate4pxXfermode;
+
+ static const auto x = neon::kX, y = neon::kY;
+ box_blur_xx = neon::box_blur<x,x>;
+ box_blur_xy = neon::box_blur<x,y>;
+ box_blur_yx = neon::box_blur<y,x>;
}
}

Powered by Google App Engine
This is Rietveld 408576698