#include <SkBlenders.h>
Definition at line 13 of file SkBlenders.h.
◆ Arithmetic()
sk_sp< SkBlender > SkBlenders::Arithmetic |
( |
float |
k1, |
|
|
float |
k2, |
|
|
float |
k3, |
|
|
float |
k4, |
|
|
bool |
enforcePremul |
|
) |
| |
|
static |
Create a blender that implements the following: k1 * src * dst + k2 * src + k3 * dst + k4
- Parameters
-
k1,k2,k3,k4 | The four coefficients. |
enforcePMColor | If true, the RGB channels will be clamped to the calculated alpha. |
Definition at line 20 of file SkBlenders.cpp.
21 {
23
25 return nullptr;
26 }
27
28
29 const struct {
36 };
37 for (
const auto& t :
table) {
43 }
44 }
45
46
48
49 const float array[] = {
51 enforcePremul ? 0.0f : 1.0f,
52 };
54}
static bool SkIsFinite(T x, Pack... values)
static bool SkScalarNearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)
static sk_sp< SkBlender > Mode(SkBlendMode mode)
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
sk_sp< SkBlender > makeBlender(sk_sp< const SkData > uniforms, SkSpan< const ChildPtr > children={}) const
const SkRuntimeEffect * GetKnownRuntimeEffect(StableKey stableKey)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
The documentation for this class was generated from the following files: