gtk/testsuite/gsk/offload/deep.node
Matthias Clasen 44d977844b testsuite: Add offload tests
These tests come in two variants.

The first takes .node and .offload file, parses the node file,
and compares the resulting subsurface attachments to expected results.

The second variant takes two .node/.offload file pairs and a .diff
file, parses the node files, compares the resulting subsurface
attachments, and then diffs the nodes, comparing the resulting
area to the region in the .diff file.
2023-11-13 18:41:53 -06:00

59 lines
1.1 KiB
Plaintext

subsurface {
child: debug {
message: "A node that is deep in, but still found";
child: debug {
message: "Affine transforms, debug nodes and single-child containers are ok";
child: transform {
transform: translate(10, 10) scale(5, 10);
child: container {
texture { }
}
}
}
}
}
subsurface {
child: debug {
message: "Multi-child containers are not ok";
child: container {
color { }
texture { }
}
}
}
subsurface {
child: debug {
message: "other nodes, such as cross-fade, are not ok";
child: cross-fade {
start: texture { }
end: texture { }
progress: 0.5;
}
}
}
subsurface {
child: debug {
message: "Other nodes, such as cross-fade, are not ok";
child: cross-fade {
start: texture { }
end: texture { }
progress: 0.5;
}
}
}
subsurface {
child: debug {
message: "Clips (regardless how large) are not ok";
child: clip {
clip: 0 0 400 400;
child: texture { }
}
}
}
subsurface {
child: debug {
message: "Can't offload non-textures";
child: linear-gradient { }
}
}