Definition at line 30 of file stringart.cpp.
◆ StringArtGM()
StringArtGM::StringArtGM |
( |
| ) |
|
|
inline |
◆ getISize()
|
inlineoverrideprotectedvirtual |
◆ getName()
|
inlineoverrideprotectedvirtual |
◆ onAnimate()
bool StringArtGM::onAnimate |
( |
double |
nanos | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 65 of file stringart.cpp.
65 {
66 constexpr SkScalar kDesiredDurationSecs = 3.0f;
67
68
70 if (fraction <= 0.0f) {
71 fraction = -fraction;
72 }
73
74 SkASSERT(fraction >= 0.0f && fraction <= 1.0f);
75
77 return true;
78 }
static float Scaled(float time, float speed, float period=0)
◆ onDraw()
void StringArtGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 39 of file stringart.cpp.
39 {
45
48
55 }
56
58 paint.setAntiAlias(
true);
61
63 }
static int step(int x, SkScalar min, SkScalar max)
#define SkScalarSin(radians)
#define SkScalarCos(radians)
static SkScalar center(float pos0, float pos1)
void drawPath(const SkPath &path, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
static float min(float r, float g, float b)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
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
constexpr SkScalar kAngle
static constexpr SkPoint Make(float x, float y)
The documentation for this class was generated from the following file: