Flutter Engine
The Flutter Engine
SkBitmapProcState_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
10#include "src/core/SkCpu.h"
12
13#define SK_OPTS_TARGET SK_OPTS_TARGET_DEFAULT
15
16#include "src/opts/SkBitmapProcState_opts.h" // IWYU pragma: keep
17
19
20namespace SkOpts {
23
25
26 static bool init() {
27 #if defined(SK_ENABLE_OPTIMIZE_SIZE)
28 // All Init_foo functions are omitted when optimizing for size
29 #elif defined(SK_CPU_X86)
30 #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3
32 #endif
33 #endif
34 return true;
35 }
36
38 [[maybe_unused]] static bool gInitialized = init();
39 }
40} // namespace SkOpts
static bool init()
void(* S32_alpha_D32_filter_DX)(const SkBitmapProcState &, const uint32_t *xy, int count, SkPMColor *)
void(* S32_alpha_D32_filter_DXDY)(const SkBitmapProcState &, const uint32_t *xy, int count, SkPMColor *)
void Init_BitmapProcState()
DEFINE_DEFAULT(S32_alpha_D32_filter_DX)
void Init_BitmapProcState_ssse3()
static bool Supports(uint32_t)
Definition: SkCpu.h:58
@ SSSE3
Definition: SkCpu.h:20