MCPcopy Create free account
hub / github.com/Samsung/rlottie / render

Method render

src/vector/vraster.cpp:348–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346 mGenerateStroke = true;
347 }
348 void render(FTOutline &outRef)
349 {
350 SW_FT_Raster_Params params;
351
352 mRle.unsafe().reset();
353
354 params.flags = SW_FT_RASTER_FLAG_DIRECT | SW_FT_RASTER_FLAG_AA;
355 params.gray_spans = &rleGenerationCb;
356 params.bbox_cb = &bboxCb;
357 params.user = &mRle.unsafe();
358 params.source = &outRef.ft;
359
360 if (!mClip.empty()) {
361 params.flags |= SW_FT_RASTER_FLAG_CLIP;
362
363 params.clip_box.xMin = mClip.left();
364 params.clip_box.yMin = mClip.top();
365 params.clip_box.xMax = mClip.right();
366 params.clip_box.yMax = mClip.bottom();
367 }
368 // compute rle
369 sw_ft_grays_raster.raster_render(nullptr, &params);
370 }
371
372 void operator()(FTOutline &outRef, SW_FT_Stroker &stroker)
373 {

Callers

nothing calls this directly

Calls 6

resetMethod · 0.45
emptyMethod · 0.45
leftMethod · 0.45
topMethod · 0.45
rightMethod · 0.45
bottomMethod · 0.45

Tested by

no test coverage detected