| 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 sk_sse41 | 10 #define SK_OPTS_NS sk_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 | 15 |
| 15 #ifndef SK_SUPPORT_LEGACY_X86_BLITS | 16 #ifndef SK_SUPPORT_LEGACY_X86_BLITS |
| 16 | 17 |
| 17 namespace sk_sse41_new { | 18 namespace sk_sse41_new { |
| 18 | 19 |
| 19 // An SSE register holding at most 64 bits of useful data in the low lanes. | 20 // An SSE register holding at most 64 bits of useful data in the low lanes. |
| 20 struct m64i { | 21 struct m64i { |
| 21 __m128i v; | 22 __m128i v; |
| 22 /*implicit*/ m64i(__m128i v) : v(v) {} | 23 /*implicit*/ m64i(__m128i v) : v(v) {} |
| 23 operator __m128i() const { return v; } | 24 operator __m128i() const { return v; } |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 box_blur_xx = sk_sse41::box_blur_xx; | 222 box_blur_xx = sk_sse41::box_blur_xx; |
| 222 box_blur_xy = sk_sse41::box_blur_xy; | 223 box_blur_xy = sk_sse41::box_blur_xy; |
| 223 box_blur_yx = sk_sse41::box_blur_yx; | 224 box_blur_yx = sk_sse41::box_blur_yx; |
| 224 srcover_srgb_srgb = sk_sse41::srcover_srgb_srgb; | 225 srcover_srgb_srgb = sk_sse41::srcover_srgb_srgb; |
| 225 | 226 |
| 226 #ifndef SK_SUPPORT_LEGACY_X86_BLITS | 227 #ifndef SK_SUPPORT_LEGACY_X86_BLITS |
| 227 blit_row_color32 = sk_sse41_new::blit_row_color32; | 228 blit_row_color32 = sk_sse41_new::blit_row_color32; |
| 228 blit_mask_d32_a8 = sk_sse41_new::blit_mask_d32_a8; | 229 blit_mask_d32_a8 = sk_sse41_new::blit_mask_d32_a8; |
| 229 #endif | 230 #endif |
| 230 blit_row_s32a_opaque = sk_sse41::blit_row_s32a_opaque; | 231 blit_row_s32a_opaque = sk_sse41::blit_row_s32a_opaque; |
| 232 |
| 233 color_xform_RGB1_srgb_to_2dot2 = sk_sse41::color_xform_RGB1_srgb_to_2do
t2; |
| 234 color_xform_RGB1_2dot2_to_2dot2 = sk_sse41::color_xform_RGB1_2dot2_to_2d
ot2; |
| 231 } | 235 } |
| 232 } | 236 } |
| OLD | NEW |