Merge branch 'matthiasc/for-main' into 'main'
Add more offload tests See merge request GNOME/gtk!7010
This commit is contained in:
@@ -466,6 +466,9 @@ if os_linux
|
||||
'stop_offloading.node',
|
||||
'source.node',
|
||||
'nested.node',
|
||||
'clipped.node',
|
||||
'not-clipped.node',
|
||||
'complex-clip.node',
|
||||
]
|
||||
|
||||
foreach test : offload_tests
|
||||
|
||||
9
testsuite/gsk/offload/clipped.node
Normal file
9
testsuite/gsk/offload/clipped.node
Normal file
@@ -0,0 +1,9 @@
|
||||
clip {
|
||||
clip: 10 10 10 10;
|
||||
child: subsurface {
|
||||
child: texture {
|
||||
bounds: 0 0 20 20;
|
||||
texture: url('data:image/svg+xml;utf-8,<svg width="20" height="20"></svg>');
|
||||
}
|
||||
}
|
||||
}
|
||||
1
testsuite/gsk/offload/clipped.offload
Normal file
1
testsuite/gsk/offload/clipped.offload
Normal file
@@ -0,0 +1 @@
|
||||
0: not offloaded
|
||||
18
testsuite/gsk/offload/complex-clip.node
Normal file
18
testsuite/gsk/offload/complex-clip.node
Normal file
@@ -0,0 +1,18 @@
|
||||
rounded-clip {
|
||||
clip: 0 0 50 50 / 20;
|
||||
child: clip {
|
||||
clip: 2 2 40 40;
|
||||
child: container {
|
||||
color {
|
||||
color: white;
|
||||
bounds: 0 0 50 50;
|
||||
}
|
||||
subsurface {
|
||||
child: texture {
|
||||
bounds: 10 10 20 20;
|
||||
texture: url('data:image/svg+xml;utf-8,<svg width="20" height="20"></svg>');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1
testsuite/gsk/offload/complex-clip.offload
Normal file
1
testsuite/gsk/offload/complex-clip.offload
Normal file
@@ -0,0 +1 @@
|
||||
0: not offloaded
|
||||
9
testsuite/gsk/offload/not-clipped.node
Normal file
9
testsuite/gsk/offload/not-clipped.node
Normal file
@@ -0,0 +1,9 @@
|
||||
clip {
|
||||
clip: 0 0 50 50;
|
||||
child: subsurface {
|
||||
child: texture {
|
||||
bounds: 0 0 20 20;
|
||||
texture: url('data:image/svg+xml;utf-8,<svg width="20" height="20"></svg>');
|
||||
}
|
||||
}
|
||||
}
|
||||
1
testsuite/gsk/offload/not-clipped.offload
Normal file
1
testsuite/gsk/offload/not-clipped.offload
Normal file
@@ -0,0 +1 @@
|
||||
0: offloaded, raised, above: -, texture: 20x20, source: 0 0 20 20, dest: 0 0 20 20
|
||||
Reference in New Issue
Block a user