Flutter Engine
The Flutter Engine
SkSwizzler_opts_hsw.cpp
Go to the documentation of this file.
1
2/*
3 * Copyright 2023 Google LLC
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
12
13#if defined(SK_CPU_X86) && \
14 !defined(SK_ENABLE_OPTIMIZE_SIZE) && \
15 SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_AVX2
16
17// The order of these includes is important:
18// 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget
19// 2) Include the code to compile, typically in a _opts.inc file.
20// 3) Include SkOpts_RestoreTarget to switch back to the default CPU architecture
21
22#define SK_OPTS_TARGET SK_OPTS_TARGET_HSW
24
26
28
29namespace SkOpts {
30 void Init_Swizzler_hsw() {
39 }
40} // namespace SkOpts
41
42#endif // SK_CPU_X86 && !SK_ENABLE_OPTIMIZE_SIZE
Swizzle_8888_u8 gray_to_RGB1
Definition: SkSwizzlePriv.h:30
Swizzle_8888_u32 RGBA_to_rgbA
Definition: SkSwizzlePriv.h:20
void Init_Swizzler_hsw()
Swizzle_8888_u8 grayA_to_rgbA
Definition: SkSwizzlePriv.h:32
Swizzle_8888_u8 grayA_to_RGBA
Definition: SkSwizzlePriv.h:31
Swizzle_8888_u32 RGBA_to_BGRA
Swizzle_8888_u32 RGBA_to_bgrA
Definition: SkSwizzlePriv.h:21
Swizzle_8888_u32 inverted_CMYK_to_BGR1
Definition: SkSwizzlePriv.h:25
Swizzle_8888_u32 inverted_CMYK_to_RGB1
Definition: SkSwizzlePriv.h:24