Index: src/opts/opts_check_x86.cpp |
diff --git a/src/opts/opts_check_x86.cpp b/src/opts/opts_check_x86.cpp |
index 5bab17aa00d137cbe92f4a004f4a66b0673c44b4..603458ba26abcddb7e6370454971572fef142a0a 100644 |
--- a/src/opts/opts_check_x86.cpp |
+++ b/src/opts/opts_check_x86.cpp |
@@ -15,7 +15,6 @@ |
#include "SkBlitRow_opts_SSE2.h" |
#include "SkBlitRow_opts_SSE4.h" |
#include "SkBlurImage_opts_SSE2.h" |
-#include "SkBlurImage_opts_SSE4.h" |
#include "SkMorphology_opts.h" |
#include "SkMorphology_opts_SSE2.h" |
#include "SkRTConf.h" |
@@ -359,13 +358,10 @@ |
#ifdef SK_DISABLE_BLUR_DIVISION_OPTIMIZATION |
return false; |
#else |
- if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { |
- return SkBoxBlurGetPlatformProcs_SSE4(boxBlurX, boxBlurY, boxBlurXY, boxBlurYX); |
- } |
- else if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
- return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, boxBlurYX); |
- } |
- return false; |
+ if (!supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { |
+ return false; |
+ } |
+ return SkBoxBlurGetPlatformProcs_SSE2(boxBlurX, boxBlurY, boxBlurXY, boxBlurYX); |
#endif |
} |