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

Method onDraw

snap_drawing/src/snap_drawing/cpp/Layers/ShapeLayer.cpp:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void ShapeLayer::onDraw(DrawingContext& drawingContext) {
30 const auto& path = getActivePath();
31 drawingContext.drawPaint(_fillPaint, path);
32 drawingContext.drawPaint(_strokePaint, path);
33}
34
35const Path& ShapeLayer::getActivePath() {
36 if (_strokeStart == 0.0f && _strokeEnd == 1.0f) {

Callers

nothing calls this directly

Calls 1

drawPaintMethod · 0.80

Tested by

no test coverage detected