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

Unified Diff: src/opts/SkOpts_sse2.cpp

Issue 1267343004: Port morphology to SkOpts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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
« no previous file with comments | « src/opts/SkOpts_neon.cpp ('k') | src/opts/SkOpts_sse41.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkOpts_sse2.cpp
diff --git a/src/opts/SkOpts_sse2.cpp b/src/opts/SkOpts_sse2.cpp
index ef0f96a0a117c742a3bc0657db77cb731357e1f5..8837efee5513aa2f7f46750cce99b6c2df6b7c2c 100644
--- a/src/opts/SkOpts_sse2.cpp
+++ b/src/opts/SkOpts_sse2.cpp
@@ -9,6 +9,7 @@
#define SK_OPTS_NS sse2
#include "SkBlurImageFilter_opts.h"
+#include "SkMorphologyImageFilter_opts.h"
#include "SkUtils_opts.h"
#include "SkXfermode_opts.h"
@@ -18,9 +19,13 @@ namespace SkOpts {
memset32 = sse2::memset32;
create_xfermode = SkCreate4pxXfermode;
- static const auto x = sse2::kX, y = sse2::kY;
- box_blur_xx = sse2::box_blur<x,x>;
- box_blur_xy = sse2::box_blur<x,y>;
- box_blur_yx = sse2::box_blur<y,x>;
+ box_blur_xx = sse2::box_blur_xx;
+ box_blur_xy = sse2::box_blur_xy;
+ box_blur_yx = sse2::box_blur_yx;
+
+ dilate_x = sse2::dilate_x;
+ dilate_y = sse2::dilate_y;
+ erode_x = sse2::erode_x;
+ erode_y = sse2::erode_y;
}
}
« no previous file with comments | « src/opts/SkOpts_neon.cpp ('k') | src/opts/SkOpts_sse41.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698