Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkBlitMask_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/SkBlitMask_opts.h" // IWYU pragma: keep
17
19
20namespace SkOpts {
22
24
25 static bool init() {
26 #if defined(SK_ENABLE_OPTIMIZE_SIZE)
27 // All Init_foo functions are omitted when optimizing for size
28 #elif defined(SK_CPU_X86)
29 #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3
31 #endif
32 #endif
33 return true;
34 }
35
37 [[maybe_unused]] static bool gInitialized = init();
38 }
39} // namespace SkOpts
#define DEFINE_DEFAULT(name)
static bool init()
void Init_BlitMask_ssse3()
void Init_BlitMask()
void(* blit_mask_d32_a8)(SkPMColor *dst, size_t dstRB, const SkAlpha *mask, size_t maskRB, SkColor color, int w, int h)
@ SSSE3
Definition SkCpu.h:20
static bool Supports(uint32_t)
Definition SkCpu.h:58