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 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 8 | #include "src/core/SkOpts.h" |
mtklein | 0358a6a | 2016-07-13 08:02:20 -0700 | [diff] [blame] | 9 | #define SK_OPTS_NS ssse3 |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 10 | #include "src/opts/SkBitmapProcState_opts.h" |
| 11 | #include "src/opts/SkBlitMask_opts.h" |
| 12 | #include "src/opts/SkSwizzler_opts.h" |
| 13 | #include "src/opts/SkXfermode_opts.h" |
mtklein | 8317a18 | 2015-07-30 07:30:16 -0700 | [diff] [blame] | 14 | |
| 15 | namespace SkOpts { |
| 16 | void Init_ssse3() { |
mtklein | 0358a6a | 2016-07-13 08:02:20 -0700 | [diff] [blame] | 17 | create_xfermode = ssse3::create_xfermode; |
| 18 | blit_mask_d32_a8 = ssse3::blit_mask_d32_a8; |
msarett | 53b9d29 | 2016-01-19 13:17:58 -0800 | [diff] [blame] | 19 | |
mtklein | 0358a6a | 2016-07-13 08:02:20 -0700 | [diff] [blame] | 20 | RGBA_to_BGRA = ssse3::RGBA_to_BGRA; |
| 21 | RGBA_to_rgbA = ssse3::RGBA_to_rgbA; |
| 22 | RGBA_to_bgrA = ssse3::RGBA_to_bgrA; |
| 23 | RGB_to_RGB1 = ssse3::RGB_to_RGB1; |
| 24 | RGB_to_BGR1 = ssse3::RGB_to_BGR1; |
| 25 | gray_to_RGB1 = ssse3::gray_to_RGB1; |
| 26 | grayA_to_RGBA = ssse3::grayA_to_RGBA; |
| 27 | grayA_to_rgbA = ssse3::grayA_to_rgbA; |
| 28 | inverted_CMYK_to_RGB1 = ssse3::inverted_CMYK_to_RGB1; |
| 29 | inverted_CMYK_to_BGR1 = ssse3::inverted_CMYK_to_BGR1; |
Mike Klein | f47abb4 | 2018-11-13 10:37:19 -0500 | [diff] [blame] | 30 | |
Mike Klein | f47abb4 | 2018-11-13 10:37:19 -0500 | [diff] [blame] | 31 | S32_alpha_D32_filter_DX = ssse3::S32_alpha_D32_filter_DX; |
mtklein | 8317a18 | 2015-07-30 07:30:16 -0700 | [diff] [blame] | 32 | } |
| 33 | } |