gtk/testsuite/gsk/offload/source.node
Matthias Clasen 1db696be79 offload: Find and use source rectangle
Look for nodes like subsurface { clip { texture {} } }, and use
the clip to provide a source rectangle for subsetting the texture.

Update affected tests, and add a new one.
2024-02-11 21:44:47 -05:00

13 lines
255 B
Plaintext

subsurface {
child: transform {
transform: scale(1);
child: clip {
clip: 4 4 40 40;
child: texture {
bounds: 0 0 48 48;
texture: url('data:image/svg+xml;utf-8,<svg width="24" height="24"></svg>');
}
}
}
}