1 /* 2 * Copyright 2023 Google LLC 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 "include/private/base/SkFeatures.h" 9 #include "src/core/SkOptsTargets.h" 10 11 #if defined(SK_CPU_X86) && !defined(SK_ENABLE_OPTIMIZE_SIZE) 12 13 // The order of these includes is important: 14 // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget 15 // 2) Include the code to compile, typically in a _opts.h file. 16 // 3) Include SkOpts_RestoreTarget to switch back to the default CPU architecture 17 18 #define SK_OPTS_TARGET SK_OPTS_TARGET_SSSE3 19 #include "src/opts/SkOpts_SetTarget.h" 20 21 #include "src/core/SkBitmapProcState.h" 22 #include "src/opts/SkBitmapProcState_opts.h" 23 24 #include "src/opts/SkOpts_RestoreTarget.h" 25 26 namespace SkOpts { Init_BitmapProcState_ssse3()27 void Init_BitmapProcState_ssse3() { 28 S32_alpha_D32_filter_DX = ssse3::S32_alpha_D32_filter_DX; 29 } 30 } // namespace SkOpts 31 32 #endif // SK_CPU_X86 && !SK_ENABLE_OPTIMIZE_SIZE 33