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

Function RenderElements_ShapePath

src/rendering/renderers/ShapeRenderer.cpp:716–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714}
715
716void RenderElements_ShapePath(ShapeElement* element, const tgfx::Matrix& parentMatrix,
717 GroupElement* parentGroup, Frame frame) {
718 auto pathElement = new PathElement();
719 ShapePathToPath(static_cast<ShapePathElement*>(element), &pathElement->path, frame);
720 pathElement->path.transform(parentMatrix);
721 parentGroup->elements.push_back(pathElement);
722}
723
724void RenderElements_Fill(ShapeElement* element, const tgfx::Matrix&, GroupElement* parentGroup,
725 Frame frame) {

Callers

nothing calls this directly

Calls 2

ShapePathToPathFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected