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 sse41 | 10 #define SK_OPTS_NS sse41 |
11 #include "SkBlurImageFilter_opts.h" | 11 #include "SkBlurImageFilter_opts.h" |
12 #include "SkBlitRow_opts.h" | 12 #include "SkBlitRow_opts.h" |
13 #include "SkBlend_opts.h" | 13 #include "SkBlend_opts.h" |
14 #include "SkColorXform_opts.h" | 14 #include "SkColorXform_opts.h" |
15 | 15 |
16 namespace SkOpts { | 16 namespace SkOpts { |
17 void Init_sse41() { | 17 void Init_sse41() { |
18 box_blur_xx = sse41::box_blur_xx; | 18 box_blur_xx = sse41::box_blur_xx; |
19 box_blur_xy = sse41::box_blur_xy; | 19 box_blur_xy = sse41::box_blur_xy; |
20 box_blur_yx = sse41::box_blur_yx; | 20 box_blur_yx = sse41::box_blur_yx; |
21 srcover_srgb_srgb = sse41::srcover_srgb_srgb; | 21 srcover_srgb_srgb = sse41::srcover_srgb_srgb; |
22 blit_row_s32a_opaque = sse41::blit_row_s32a_opaque; | 22 blit_row_s32a_opaque = sse41::blit_row_s32a_opaque; |
23 | 23 |
24 color_xform_RGB1_to_2dot2 = sse41::color_xform_RGB1_to_2dot2; | 24 color_xform_RGB1_to_2dot2 = sse41::color_xform_RGB1_to_2do t2; |
mtklein
2016/07/28 19:35:12
So, all 14 of these routines are really going to b
msarett
2016/07/28 20:39:04
I think these 6 are critical.
RGBA->RGBA
msarett
2016/07/29 18:23:01
I wrote a CL that removes the special case for 2Do
mtklein
2016/07/29 18:48:56
Seems like we want to keep all 14 for now.
msarett
2016/07/29 20:07:50
Acknowledged.
| |
25 color_xform_RGB1_to_srgb = sse41::color_xform_RGB1_to_srgb; | 25 color_xform_RGB1_to_srgb = sse41::color_xform_RGB1_to_srg b; |
26 color_xform_RGB1_to_table = sse41::color_xform_RGB1_to_table; | 26 color_xform_RGB1_to_table = sse41::color_xform_RGB1_to_tab le; |
27 color_xform_RGB1_to_linear = sse41::color_xform_RGB1_to_linear; | 27 color_xform_RGB1_to_linear = sse41::color_xform_RGB1_to_lin ear; |
28 color_xform_RGB1_to_2dot2_swaprb = sse41::color_xform_RGB1_to_2dot2_swap rb; | 28 color_xform_RGB1_to_2dot2_swaprb = sse41::color_xform_RGB1_to_2do t2_swaprb; |
29 color_xform_RGB1_to_srgb_swaprb = sse41::color_xform_RGB1_to_srgb_swapr b; | 29 color_xform_RGB1_to_srgb_swaprb = sse41::color_xform_RGB1_to_srg b_swaprb; |
30 color_xform_RGB1_to_table_swaprb = sse41::color_xform_RGB1_to_table_swap rb; | 30 color_xform_RGB1_to_table_swaprb = sse41::color_xform_RGB1_to_tab le_swaprb; |
31 color_xform_RGB1_to_2dot2_premul = sse41::color_xform_RGB1_to_2do t2_premul; | |
32 color_xform_RGB1_to_srgb_premul = sse41::color_xform_RGB1_to_srg b_premul; | |
33 color_xform_RGB1_to_table_premul = sse41::color_xform_RGB1_to_tab le_premul; | |
34 color_xform_RGB1_to_linear_premul = sse41::color_xform_RGB1_to_lin ear_premul; | |
35 color_xform_RGB1_to_2dot2_premul_swaprb = sse41::color_xform_RGB1_to_2do t2_premul_swaprb; | |
36 color_xform_RGB1_to_srgb_premul_swaprb = sse41::color_xform_RGB1_to_srg b_premul_swaprb; | |
37 color_xform_RGB1_to_table_premul_swaprb = sse41::color_xform_RGB1_to_tab le_premul_swaprb; | |
31 } | 38 } |
32 } | 39 } |
OLD | NEW |