Index: src/opts/opts_check_SSE2.cpp |
diff --git a/src/opts/opts_check_SSE2.cpp b/src/opts/opts_check_SSE2.cpp |
index b63a2ffa0fe623b264db60eb9ff1fda8caba72e0..e7677220cb9326480e4fea631e2249398547e1a9 100644 |
--- a/src/opts/opts_check_SSE2.cpp |
+++ b/src/opts/opts_check_SSE2.cpp |
@@ -17,6 +17,8 @@ |
#include "SkUtils.h" |
#include "SkMorphology_opts.h" |
#include "SkMorphology_opts_SSE2.h" |
+#include "SkXfermode.h" |
+#include "SkXfermode_proccoeff.h" |
#include "SkRTConf.h" |
@@ -307,3 +309,32 @@ SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { |
return NULL; |
} |
} |
+ |
+extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_SSE2(const ProcCoeff& rec, |
+ SkXfermode::Mode mode); |
+ |
+SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, |
+ SkXfermode::Mode mode); |
+ |
+SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, |
+ SkXfermode::Mode mode) { |
+ return NULL; |
+} |
+ |
+SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, |
+ SkXfermode::Mode mode); |
+ |
+SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, |
+ SkXfermode::Mode mode) { |
+ if (cachedHasSSE2()) { |
+ return SkPlatformXfermodeFactory_impl_SSE2(rec, mode); |
+ } else { |
+ return SkPlatformXfermodeFactory_impl(rec, mode); |
+ } |
+} |
+ |
+SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
+ |
+SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { |
+ return NULL; |
+} |