87 {
88 static const int kWidth = 10;
90
92
94
97 canvasFilter.clear(0x00000000);
98
101 canvasPaint.clear(0x00000000);
102
107
110
111
112 {
117 }
118
119
120 {
122 paint.setShader(gradient);
125 }
126
127
130 SkString errString(
"Image filter doesn't match paint reference");
131 errString.append("\nExpected: ");
133 errString.append(encoded);
134 } else {
135 errString.append("failed to encode");
136 }
137
138 errString.append("\nActual: ");
140 errString.append(encoded);
141 } else {
142 errString.append("failed to encode");
143 }
144
146 }
147}
static SkScalar center(float pos0, float pos1)
void allocN32Pixels(int width, int height, bool isOpaque=false)
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)
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
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
static constexpr SkPoint Make(float x, float y)
static SkRect Make(const SkISize &size)