Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
#define DEFINE_DEFAULT(name)
static bool init()
Swizzle_8888_u8 gray_to_RGB1
Swizzle_8888_u32 RGBA_to_rgbA
void Init_Swizzler_hsw()
Swizzle_8888_u8 RGB_to_RGB1
Swizzle_8888_u8 grayA_to_rgbA
void Init_Swizzler_ssse3()
Swizzle_8888_u8 RGB_to_BGR1
Swizzle_8888_u8 grayA_to_RGBA
Swizzle_8888_u32 RGBA_to_BGRA
Swizzle_8888_u32 RGBA_to_bgrA
void Init_Swizzler()
Swizzle_8888_u32 rgbA_to_BGRA
Swizzle_8888_u32 inverted_CMYK_to_BGR1
Swizzle_8888_u32 inverted_CMYK_to_RGB1
Swizzle_8888_u32 rgbA_to_RGBA
@ HSW
Definition SkCpu.h:30
@ SSSE3
Definition SkCpu.h:20
static bool Supports(uint32_t)
Definition SkCpu.h:58