| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 The Android Open Source Project | 2 * Copyright 2013 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "SkColorPriv.h" | 9 #include "SkColorPriv.h" |
| 10 #include "SkMorphology_opts_SSE2.h" |
| 10 | 11 |
| 11 #include <emmintrin.h> | 12 #include <emmintrin.h> |
| 12 | 13 |
| 13 /* SSE2 version of dilateX, dilateY, erodeX, erodeY. | 14 /* SSE2 version of dilateX, dilateY, erodeX, erodeY. |
| 14 * portable versions are in src/effects/SkMorphologyImageFilter.cpp. | 15 * portable versions are in src/effects/SkMorphologyImageFilter.cpp. |
| 15 */ | 16 */ |
| 16 | 17 |
| 17 enum MorphType { | 18 enum MorphType { |
| 18 kDilate, kErode | 19 kDilate, kErode |
| 19 }; | 20 }; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 int width, int height, int srcStride, int dstStride) | 70 int width, int height, int srcStride, int dstStride) |
| 70 { | 71 { |
| 71 SkMorph_SSE2<kDilate, kY>(src, dst, radius, width, height, srcStride, dstStr
ide); | 72 SkMorph_SSE2<kDilate, kY>(src, dst, radius, width, height, srcStride, dstStr
ide); |
| 72 } | 73 } |
| 73 | 74 |
| 74 void SkErodeY_SSE2(const SkPMColor* src, SkPMColor* dst, int radius, | 75 void SkErodeY_SSE2(const SkPMColor* src, SkPMColor* dst, int radius, |
| 75 int width, int height, int srcStride, int dstStride) | 76 int width, int height, int srcStride, int dstStride) |
| 76 { | 77 { |
| 77 SkMorph_SSE2<kErode, kY>(src, dst, radius, width, height, srcStride, dstStri
de); | 78 SkMorph_SSE2<kErode, kY>(src, dst, radius, width, height, srcStride, dstStri
de); |
| 78 } | 79 } |
| OLD | NEW |