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

Method rectangle

snap_drawing/test/utils/DisplayListBuilder.cpp:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52LayerContent DisplayListBuilder::rectangle(Size size, Scalar opacity) {
53 return draw(size, opacity, [](DrawingContext& drawingContext) {
54 Paint paint;
55 paint.setColor(Color::blue());
56
57 drawingContext.drawPaint(paint, drawingContext.drawBounds());
58 });
59}
60
61LayerContent DisplayListBuilder::externalSurface(Size size, Scalar opacity) {
62 return draw(size, opacity, [&](DrawingContext& drawingContext) {

Callers 2

TESTFunction · 0.80
TEST_FFunction · 0.80

Calls 2

drawPaintMethod · 0.80
setColorMethod · 0.45

Tested by

no test coverage detected