MCPcopy Create free account
hub / github.com/Tencent/libpag / applyToPath

Method applyToPath

src/rendering/graphics/Modifier.cpp:201–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201bool ClipModifier::applyToPath(tgfx::Path* path) const {
202 path->addPath(clip, tgfx::PathOp::Intersect);
203 return true;
204}
205
206void ClipModifier::applyToGraphic(Canvas* canvas, std::shared_ptr<Graphic> graphic) const {
207 canvas->save();

Callers 4

ExpandPathFunction · 0.45
ApplyStrokeToPathFunction · 0.45
getPathMethod · 0.45
ApplyPaintToPathFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected