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

Function performComposition

snap_drawing/test/src/Compositor_Tests.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace snap::drawing {
16
17static CompositorPlaneList performComposition(DisplayListBuilder& builder,
18 Ref<DisplayList>* outputDisplayList = nullptr) {
19 CompositorPlaneList planeList;
20 Compositor compositor(ConsoleLogger::getLogger());
21 auto displayList = compositor.performComposition(*builder.displayList, planeList);
22 if (outputDisplayList != nullptr) {
23 *outputDisplayList = displayList;
24 }
25 return planeList;
26}
27
28TEST(Compositor, doesNothingWhenNoExternalSurfacesArePresent) {
29 DisplayListBuilder builder(100, 100);

Callers 1

TESTFunction · 0.85

Calls 1

performCompositionMethod · 0.80

Tested by

no test coverage detected