Index: src/opts/SkMorphology_opts_SSE2.cpp |
diff --git a/src/opts/SkMorphology_opts_SSE2.cpp b/src/opts/SkMorphology_opts_SSE2.cpp |
index b58fced2c12718f8b84b42f948b8f85a6b914415..e782950956a54377637f733ed680b9fca50eae1f 100644 |
--- a/src/opts/SkMorphology_opts_SSE2.cpp |
+++ b/src/opts/SkMorphology_opts_SSE2.cpp |
@@ -5,12 +5,10 @@ |
* found in the LICENSE file. |
*/ |
- |
+#include <emmintrin.h> |
#include "SkColorPriv.h" |
#include "SkMorphology_opts_SSE2.h" |
-#include <emmintrin.h> |
- |
/* SSE2 version of dilateX, dilateY, erodeX, erodeY. |
* portable versions are in src/effects/SkMorphologyImageFilter.cpp. |
*/ |
@@ -48,8 +46,12 @@ static void SkMorph_SSE2(const SkPMColor* src, SkPMColor* dst, int radius, |
lp += srcStrideY; |
up += srcStrideY; |
} |
- if (x >= radius) src += srcStrideX; |
- if (x + radius < width - 1) upperSrc += srcStrideX; |
+ if (x >= radius) { |
+ src += srcStrideX; |
+ } |
+ if (x + radius < width - 1) { |
+ upperSrc += srcStrideX; |
+ } |
dst += dstStrideX; |
} |
} |