Flutter Engine
The Flutter Engine
third_party
skia
src
core
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
8
#include "
include/private/base/SkFeatures.h
"
9
#include "
src/core/SkBitmapProcState.h
"
10
#include "
src/core/SkCpu.h
"
11
#include "
src/core/SkOptsTargets.h
"
12
13
#define SK_OPTS_TARGET SK_OPTS_TARGET_DEFAULT
14
#include "
src/opts/SkOpts_SetTarget.h
"
15
16
#include "
src/opts/SkBitmapProcState_opts.h
"
// IWYU pragma: keep
17
18
#include "
src/opts/SkOpts_RestoreTarget.h
"
19
20
namespace
SkOpts
{
21
DEFINE_DEFAULT
(
S32_alpha_D32_filter_DX
);
22
DEFINE_DEFAULT
(
S32_alpha_D32_filter_DXDY
);
23
24
void
Init_BitmapProcState_ssse3
();
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
31
if
(
SkCpu::Supports
(
SkCpu::SSSE3
)) {
Init_BitmapProcState_ssse3
(); }
32
#endif
33
#endif
34
return
true
;
35
}
36
37
void
Init_BitmapProcState
() {
38
[[maybe_unused]]
static
bool
gInitialized =
init
();
39
}
40
}
// namespace SkOpts
SkBitmapProcState.h
SkBitmapProcState_opts.h
SkCpu.h
SkFeatures.h
SkOptsTargets.h
SkOpts_RestoreTarget.h
SkOpts_SetTarget.h
SkOpts
Definition:
SkBitmapProcState.h:216
SkOpts::init
static bool init()
Definition:
SkBitmapProcState_opts.cpp:26
SkOpts::S32_alpha_D32_filter_DX
void(* S32_alpha_D32_filter_DX)(const SkBitmapProcState &, const uint32_t *xy, int count, SkPMColor *)
SkOpts::S32_alpha_D32_filter_DXDY
void(* S32_alpha_D32_filter_DXDY)(const SkBitmapProcState &, const uint32_t *xy, int count, SkPMColor *)
SkOpts::Init_BitmapProcState
void Init_BitmapProcState()
Definition:
SkBitmapProcState_opts.cpp:37
SkOpts::DEFINE_DEFAULT
DEFINE_DEFAULT(S32_alpha_D32_filter_DX)
SkOpts::Init_BitmapProcState_ssse3
void Init_BitmapProcState_ssse3()
SkCpu::Supports
static bool Supports(uint32_t)
Definition:
SkCpu.h:58
SkCpu::SSSE3
@ SSSE3
Definition:
SkCpu.h:20
Generated on Sun Jun 23 2024 21:56:10 for Flutter Engine by
1.9.4