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

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 the non-SSE2 build. 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.h ('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..cf2c81f1fa182b35fb5062a31ffaea1fdf6b3538 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,24 @@ SkMemset32Proc SkMemset32GetPlatformProc() {
}
}
+SkMorphologyProc SkMorphologyGetPlatformProc(SkMorphologyProcType type) {
+ if (!cachedHasSSE2()) {
+ return NULL;
+ }
+ switch (type) {
+ case SkMorphologyDilateX_Type:
+ return SkDilateX_SSE2;
+ case SkMorphologyDilateY_Type:
+ return SkDilateY_SSE2;
+ case SkMorphologyErodeX_Type:
+ return SkErodeX_SSE2;
+ case SkMorphologyErodeY_Type:
+ return SkErodeY_SSE2;
+ default:
+ return NULL;
+ }
+}
+
SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning
SkBlitRow::ColorRectProc PlatformColorRectProcFactory() {
« src/opts/SkMorphology_opts.h ('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