Go to the source code of this file.
|
static sk_sp< SkShader > | shader_linear (const SkColor colors[], int count, const SkSize &size) |
|
static sk_sp< SkShader > | shader_radial (const SkColor colors[], int count, const SkSize &size) |
|
static sk_sp< SkShader > | shader_conical (const SkColor colors[], int count, const SkSize &size) |
|
static sk_sp< SkShader > | shader_sweep (const SkColor colors[], int count, const SkSize &size) |
|
| M (linear, true) M(radial |
|
true | M (conical, true) M(sweep |
|
true true | M (linear, false) M(radial |
|
true true false | M (conical, false) M(sweep |
|
◆ MakeShaderProc
◆ M() [1/4]
◆ M() [2/4]
◆ M() [3/4]
◆ M() [4/4]
◆ shader_conical()
Definition at line 35 of file shallowgradient.cpp.
35 {
39}
static SkScalar center(float pos0, float pos1)
static sk_sp< SkShader > MakeTwoPointConical(const SkPoint &start, SkScalar startRadius, const SkPoint &end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
PODArray< SkColor > colors
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 keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ shader_linear()
Definition at line 24 of file shallowgradient.cpp.
24 {
27}
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
◆ shader_radial()
Definition at line 29 of file shallowgradient.cpp.
29 {
33}
static sk_sp< SkShader > MakeRadial(const SkPoint ¢er, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
◆ shader_sweep()
Definition at line 41 of file shallowgradient.cpp.
41 {
43}
static sk_sp< SkShader > MakeSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, SkScalar startAngle, SkScalar endAngle, uint32_t flags, const SkMatrix *localMatrix)