Flutter Engine
The Flutter Engine
SkSwizzler_opts.cpp
Go to the documentation of this file.
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
9#include "src/core/SkCpu.h"
12
13#define SK_OPTS_TARGET SK_OPTS_TARGET_DEFAULT
15
16#include "src/opts/SkSwizzler_opts.inc" // IWYU pragma: keep
17
19
20namespace SkOpts {
33
36
37 static bool init() {
38 #if defined(SK_ENABLE_OPTIMIZE_SIZE)
39 // All Init_foo functions are omitted when optimizing for size
40 #elif defined(SK_CPU_X86)
41 #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3
43 #endif
44
45 #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_AVX2
47 #endif
48 #endif
49 return true;
50 }
51
53 [[maybe_unused]] static bool gInitialized = init();
54 }
55} // namespace SkOpts
static bool init()
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 RGB_to_RGB1
Swizzle_8888_u8 grayA_to_rgbA
Definition: SkSwizzlePriv.h:32
void Init_Swizzler_ssse3()
Swizzle_8888_u8 RGB_to_BGR1
Definition: SkSwizzlePriv.h:29
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
void Init_Swizzler()
Swizzle_8888_u32 rgbA_to_BGRA
Definition: SkSwizzlePriv.h:23
Swizzle_8888_u32 inverted_CMYK_to_BGR1
Definition: SkSwizzlePriv.h:25
Swizzle_8888_u32 inverted_CMYK_to_RGB1
Definition: SkSwizzlePriv.h:24
DEFINE_DEFAULT(S32_alpha_D32_filter_DX)
Swizzle_8888_u32 rgbA_to_RGBA
Definition: SkSwizzlePriv.h:22
static bool Supports(uint32_t)
Definition: SkCpu.h:58
@ HSW
Definition: SkCpu.h:30
@ SSSE3
Definition: SkCpu.h:20