MCPcopy Create free account
hub / github.com/Snapchat/Valdi / mask

Method mask

snap_drawing/test/utils/DisplayListBuilder.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void DisplayListBuilder::mask(const Rect& rect, BuilderCb&& cb) {
84 Paint paint;
85 auto mask = Valdi::makeShared<PaintMask>(paint, Path(), rect);
86 displayList->appendPrepareMask(mask.get());
87 cb();
88 displayList->appendApplyMask(mask.get());
89}
90
91struct ToArrayVisitor {
92 std::vector<const Operations::Operation*> operations;

Callers 2

HelpersFunction · 0.80
TESTFunction · 0.80

Calls 5

appendPrepareMaskMethod · 0.80
appendApplyMaskMethod · 0.80
getMethod · 0.65
PathClass · 0.50
cbFunction · 0.50

Tested by

no test coverage detected