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

Method draw

snap_drawing/src/snap_drawing/cpp/Drawing/LinearGradient.cpp:126–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void LinearGradient::draw(DrawingContext& drawingContext, const BorderRadius& borderRadius) {
127 update(drawingContext.drawBounds());
128
129 if (isEmpty()) {
130 return;
131 }
132
133 Paint paint;
134 applyToPaint(paint);
135
136 drawingContext.drawPaint(paint, borderRadius, _lazyPath);
137}
138
139} // 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