mtklein | 8317a18 | 2015-07-30 07:30:16 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "SkOpts.h" |
mtklein | b2a3270 | 2015-08-18 10:00:29 -0700 | [diff] [blame] | 9 | #define SK_OPTS_NS sk_ssse3 |
mtklein | 9483763 | 2015-08-18 05:18:52 -0700 | [diff] [blame] | 10 | #include "SkBlitMask_opts.h" |
mtklein | 2d141ba | 2015-08-18 09:43:28 -0700 | [diff] [blame] | 11 | #include "SkColorCubeFilter_opts.h" |
msarett | 53b9d29 | 2016-01-19 13:17:58 -0800 | [diff] [blame] | 12 | #include "SkSwizzler_opts.h" |
mtklein | 9483763 | 2015-08-18 05:18:52 -0700 | [diff] [blame] | 13 | #include "SkXfermode_opts.h" |
mtklein | 8317a18 | 2015-07-30 07:30:16 -0700 | [diff] [blame] | 14 | |
| 15 | namespace SkOpts { |
| 16 | void Init_ssse3() { |
mtklein | 08f9234 | 2015-08-18 12:23:28 -0700 | [diff] [blame] | 17 | create_xfermode = sk_ssse3::create_xfermode; |
mtklein | b2a3270 | 2015-08-18 10:00:29 -0700 | [diff] [blame] | 18 | blit_mask_d32_a8 = sk_ssse3::blit_mask_d32_a8; |
| 19 | color_cube_filter_span = sk_ssse3::color_cube_filter_span; |
msarett | 53b9d29 | 2016-01-19 13:17:58 -0800 | [diff] [blame] | 20 | |
msarett | c5c322d | 2016-02-08 13:26:25 -0800 | [diff] [blame] | 21 | RGBA_to_BGRA = sk_ssse3::RGBA_to_BGRA; |
| 22 | RGBA_to_rgbA = sk_ssse3::RGBA_to_rgbA; |
| 23 | RGBA_to_bgrA = sk_ssse3::RGBA_to_bgrA; |
| 24 | RGB_to_RGB1 = sk_ssse3::RGB_to_RGB1; |
| 25 | RGB_to_BGR1 = sk_ssse3::RGB_to_BGR1; |
| 26 | gray_to_RGB1 = sk_ssse3::gray_to_RGB1; |
| 27 | grayA_to_RGBA = sk_ssse3::grayA_to_RGBA; |
| 28 | grayA_to_rgbA = sk_ssse3::grayA_to_rgbA; |
| 29 | inverted_CMYK_to_RGB1 = sk_ssse3::inverted_CMYK_to_RGB1; |
| 30 | inverted_CMYK_to_BGR1 = sk_ssse3::inverted_CMYK_to_BGR1; |
mtklein | 8317a18 | 2015-07-30 07:30:16 -0700 | [diff] [blame] | 31 | } |
| 32 | } |