OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
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 #include "SkOpts.h" | 8 #include "SkOpts.h" |
9 | 9 |
10 #define SK_OPTS_NS neon | 10 #define SK_OPTS_NS neon |
11 #include "SkBlurImageFilter_opts.h" | 11 #include "SkBlurImageFilter_opts.h" |
12 #include "SkFloatingPoint_opts.h" | 12 #include "SkFloatingPoint_opts.h" |
| 13 #include "SkMorphologyImageFilter_opts.h" |
13 #include "SkUtils_opts.h" | 14 #include "SkUtils_opts.h" |
14 #include "SkXfermode_opts.h" | 15 #include "SkXfermode_opts.h" |
15 | 16 |
16 namespace SkOpts { | 17 namespace SkOpts { |
17 void Init_neon() { | 18 void Init_neon() { |
18 rsqrt = neon::rsqrt; | 19 rsqrt = neon::rsqrt; |
19 memset16 = neon::memset16; | 20 memset16 = neon::memset16; |
20 memset32 = neon::memset32; | 21 memset32 = neon::memset32; |
21 create_xfermode = SkCreate4pxXfermode; | 22 create_xfermode = SkCreate4pxXfermode; |
22 | 23 |
23 static const auto x = neon::kX, y = neon::kY; | 24 box_blur_xx = neon::box_blur_xx; |
24 box_blur_xx = neon::box_blur<x,x>; | 25 box_blur_xy = neon::box_blur_xy; |
25 box_blur_xy = neon::box_blur<x,y>; | 26 box_blur_yx = neon::box_blur_yx; |
26 box_blur_yx = neon::box_blur<y,x>; | 27 |
| 28 dilate_x = neon::dilate_x; |
| 29 dilate_y = neon::dilate_y; |
| 30 erode_x = neon::erode_x; |
| 31 erode_y = neon::erode_y; |
27 } | 32 } |
28 } | 33 } |
OLD | NEW |