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

Method draw

snap_drawing/src/snap_drawing/cpp/Drawing/RadialGradient.cpp:95–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void RadialGradient::draw(DrawingContext& drawingContext, const BorderRadius& borderRadius) {
96 update(drawingContext.drawBounds());
97
98 if (isEmpty()) {
99 return;
100 }
101
102 Paint paint;
103 applyToPaint(paint);
104
105 drawingContext.drawPaint(paint, borderRadius, _lazyPath);
106}
107
108} // namespace snap::drawing

Callers

nothing calls this directly

Calls 3

updateFunction · 0.85
isEmptyFunction · 0.85
drawPaintMethod · 0.80

Tested by

no test coverage detected