125 {
128
131 };
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
155 for (
size_t bitmapMaker = 0; bitmapMaker <
std::size(gBitmapMakers); ++bitmapMaker) {
157 gBitmapMakers[bitmapMaker](&bm);
158
161
162
166
168
169
170
171 for (
unsigned i = 1;
i <
std::size(gColorFilterMakers); ++
i) {
173 paint.setColorFilter(gColorFilterMakers[
i]());
175 }
176
177 paint.setColorFilter(
nullptr);
178
179 for (
unsigned i = 0;
i <
std::size(gColorFilterMakers); ++
i) {
182 std::move(colorFilter1), nullptr));
183
184
185
188 for (
unsigned j = 1; j <
std::size(gColorFilterMakers); ++j) {
191 std::move(colorFilter2), imageFilter1, nullptr));
192 paint.setImageFilter(std::move(imageFilter2));
195 }
196 }
197
198
200 }
201 }
sk_sp< SkImage > asImage() const
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkImageFilter > ColorFilter(sk_sp< SkColorFilter > cf, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
SkSamplingOptions sampling
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 sk_sp< SkColorFilter > make_null_cf()
static sk_sp< SkColorFilter > make_cf0()
static void make_bm0(SkBitmap *bm)
static sk_sp< SkColorFilter > make_cf1()
static void make_bm1(SkBitmap *bm)
static sk_sp< SkColorFilter > make_cf3()
static sk_sp< SkColorFilter > make_cf2()