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 sse2 | 10 #define SK_OPTS_NS sse2 |
11 #include "SkBlitMask_opts.h" | 11 #include "SkBlitMask_opts.h" |
12 #include "SkBlurImageFilter_opts.h" | 12 #include "SkBlurImageFilter_opts.h" |
13 #include "SkMorphologyImageFilter_opts.h" | 13 #include "SkMorphologyImageFilter_opts.h" |
14 #include "SkUtils_opts.h" | 14 #include "SkUtils_opts.h" |
15 #include "SkXfermode_opts.h" | 15 #include "SkXfermode_opts.h" |
16 | 16 |
17 namespace SkOpts { | 17 namespace SkOpts { |
18 void Init_sse2() { | 18 void Init_sse2() { |
19 memset16 = sse2::memset16; | 19 memset16 = sse2::memset16; |
20 memset32 = sse2::memset32; | 20 memset32 = sse2::memset32; |
21 create_xfermode = SkCreate4pxXfermode; | 21 create_xfermode = sse2::create_xfermode; |
22 | 22 |
23 box_blur_xx = sse2::box_blur_xx; | 23 box_blur_xx = sse2::box_blur_xx; |
24 box_blur_xy = sse2::box_blur_xy; | 24 box_blur_xy = sse2::box_blur_xy; |
25 box_blur_yx = sse2::box_blur_yx; | 25 box_blur_yx = sse2::box_blur_yx; |
26 | 26 |
27 dilate_x = sse2::dilate_x; | 27 dilate_x = sse2::dilate_x; |
28 dilate_y = sse2::dilate_y; | 28 dilate_y = sse2::dilate_y; |
29 erode_x = sse2::erode_x; | 29 erode_x = sse2::erode_x; |
30 erode_y = sse2::erode_y; | 30 erode_y = sse2::erode_y; |
31 | 31 |
32 blit_mask_d32_a8 = sse2::blit_mask_d32_a8; | 32 blit_mask_d32_a8 = sse2::blit_mask_d32_a8; |
33 } | 33 } |
34 } | 34 } |
OLD | NEW |