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

Method externalSurface

snap_drawing/test/utils/DisplayListBuilder.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61LayerContent DisplayListBuilder::externalSurface(Size size, Scalar opacity) {
62 return draw(size, opacity, [&](DrawingContext& drawingContext) {
63 auto externalSurface = Valdi::makeShared<ExternalSurface>();
64 externalSurface->setRelativeSize(size);
65
66 drawingContext.drawExternalSurface(externalSurface);
67 });
68}
69
70void DisplayListBuilder::clip(Size size) {
71 displayList->appendClipRect(size.width, size.height);

Callers 1

TESTFunction · 0.80

Calls 2

setRelativeSizeMethod · 0.80
drawExternalSurfaceMethod · 0.80

Tested by

no test coverage detected