Definition at line 24 of file nested.cpp.
◆ Shapes
Enumerator |
---|
kRect_Shape | |
kRRect_Shape | |
kOval_Shape | |
kShapeCount | |
Definition at line 46 of file nested.cpp.
◆ NestedGM()
skiagm::NestedGM::NestedGM |
( |
bool |
doAA, |
|
|
bool |
flipped |
|
) |
| |
|
inline |
Definition at line 26 of file nested.cpp.
26 : fDoAA(doAA), fFlipped(flipped) {
28 }
◆ AddShape()
Definition at line 53 of file nested.cpp.
53 {
54 switch (shape) {
57 break;
62 break;
63 }
66 break;
67 default:
68 break;
69 }
70 }
void setRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
sk_sp< SkBlender > blender SkRect rect
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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir
◆ getISize()
SkISize skiagm::NestedGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 44 of file nested.cpp.
static constexpr SkISize Make(int32_t w, int32_t h)
◆ getName()
SkString skiagm::NestedGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 31 of file nested.cpp.
31 {
33 if (fFlipped) {
34 name.append(
"_flipY");
35 }
36 if (fDoAA) {
38 } else {
40 }
42 }
DEF_SWITCHES_START aot vmservice shared library name
◆ onDraw()
void skiagm::NestedGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 72 of file nested.cpp.
72 {
73
77
79
81 { 10, 10, 30, 30 },
82 { .5f, 18, 4.5f, 22 }
83 };
84
85
87
88 for (
int y = 0;
y < kImageHeight;
y += 10) {
89 for (
int x = 0;
x < kImageWidth;
x += 10) {
92 10, 10);
94 p.setColor(rand.
nextU() | 0xFF000000);
96 }
97 }
98
100 for (
int outerShape = 0; outerShape <
kShapeCount; ++outerShape) {
101 for (
int innerShape = 0; innerShape <
kShapeCount; ++innerShape) {
102 for (
size_t innerRect = 0; innerRect <
std::size(innerRects); ++innerRect) {
104
108
110 if (fFlipped) {
111 canvas->
scale(1.0f, -1.0f);
113 } else {
115 }
116
119
120 xOff += 45;
121 }
122 }
123
124 xOff = 2;
125 yOff += 45;
126 }
127
128 }
constexpr SkColor SK_ColorBLACK
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void setColor(SkColor color)
void setAntiAlias(bool aa)
static void AddShape(SkPathBuilder *b, const SkRect &rect, Shapes shape, SkPathDirection dir)
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
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)
The documentation for this class was generated from the following file: