193 {
194 if (!fVisibleSampleCount) {
195 return;
196 }
197
199 const auto& child = this->
children()[0];
200
201
202
203 AutoInvalBlocker aib(this, child);
204
209 this->renderToRaster8888Pow2Samples(canvas, ctx);
210 return;
211 }
212
214
215
217
218 const float frame_alpha = 1.0f / fVisibleSampleCount;
219
220
221
222 ScopedRenderContext frame_ctx(canvas, ctx);
224
225 const bool isolate_frames = !!frame_ctx->fBlender;
226 if (isolate_frames) {
229 } else {
230 frame_ctx = frame_ctx.modulateOpacity(frame_alpha)
232 }
233
235 for (size_t i = 0; i < fSampleCount; ++i) {
237
238 if (!child->isVisible()) {
239 continue;
240 }
241
243 if (isolate_frames) {
244 canvas->
saveLayer(
nullptr, &frame_paint);
245 }
246
247 child->render(canvas, frame_ctx);
249 }
250
251 SkASSERT(frames_rendered == fVisibleSampleCount);
252}
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
constexpr bool SkIsPow2(T value)
static sk_sp< SkBlender > Mode(SkBlendMode mode)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
bool peekPixels(SkPixmap *pixmap)
SkMatrix getTotalMatrix() const
SkImageInfo imageInfo() const
void setBlendMode(SkBlendMode mode)
const std::vector< sk_sp< RenderNode > > & children() const
const SkRect & bounds() const
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
SkColorType colorType() const