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

Unified Diff: src/opts/opts_check_SSE2.cpp

Issue 52603004: Implement SSE2-based implementations of the morphology filters (dilate & (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix typo in dilateY() Created 7 years, 2 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
« src/opts/SkMorphology_opts_SSE2.cpp ('K') | « src/opts/SkMorphology_opts_none.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/opts_check_SSE2.cpp
diff --git a/src/opts/opts_check_SSE2.cpp b/src/opts/opts_check_SSE2.cpp
index 8f0bdac8fd88b647bb88b3c1fca6f640526914b1..47bbb83aa9b43837b244042350806ad2d5689b13 100644
--- a/src/opts/opts_check_SSE2.cpp
+++ b/src/opts/opts_check_SSE2.cpp
@@ -14,6 +14,8 @@
#include "SkBlitRow_opts_SSE2.h"
#include "SkUtils_opts_SSE2.h"
#include "SkUtils.h"
+#include "SkMorphology_opts.h"
+#include "SkMorphology_opts_SSE2.h"
#include "SkRTConf.h"
@@ -248,6 +250,22 @@ SkMemset32Proc SkMemset32GetPlatformProc() {
}
}
+SkMorphologyProc SkDilateXGetPlatformProc() {
+ return cachedHasSSE2() ? SkDilateX_SSE2 : NULL;
+}
+
+SkMorphologyProc SkDilateYGetPlatformProc() {
+ return cachedHasSSE2() ? SkDilateY_SSE2 : NULL;
+}
+
+SkMorphologyProc SkErodeXGetPlatformProc() {
+ return cachedHasSSE2() ? SkErodeX_SSE2 : NULL;
+}
+
+SkMorphologyProc SkErodeYGetPlatformProc() {
+ return cachedHasSSE2() ? SkErodeY_SSE2 : NULL;
+}
+
SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning
SkBlitRow::ColorRectProc PlatformColorRectProcFactory() {
« src/opts/SkMorphology_opts_SSE2.cpp ('K') | « src/opts/SkMorphology_opts_none.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698