mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
testsuite: Add a test for scaled texture clipping
This tests that the result is suitably clipped for doing linear blending - the rightmost green pixel that is technically offscreen is blending into the red pixel and turning the test yellow. Cairo gets this wrong for some reason I didn't investigate.
This commit is contained in:
parent
cb6c720d37
commit
1afc7a9210
16
testsuite/gsk/compare/scaled-texture-scale-clip-nocairo.node
Normal file
16
testsuite/gsk/compare/scaled-texture-scale-clip-nocairo.node
Normal file
@ -0,0 +1,16 @@
|
||||
clip {
|
||||
clip: 35 1 2 2;
|
||||
child: color-matrix {
|
||||
matrix: matrix3d(1000, 0, 0, 0, 0, 1000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
||||
child: transform {
|
||||
transform: scale(8);
|
||||
child: texture-scale {
|
||||
bounds: 0 0 10 10;
|
||||
filter: nearest;
|
||||
texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAABCAYAAAD0In+KAAAAEUlEQVQImWP4z8Dwn+E/w38AEPgD\
|
||||
/V+dao0AAAAASUVORK5CYII=\
|
||||
");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
testsuite/gsk/compare/scaled-texture-scale-clip-nocairo.png
Normal file
BIN
testsuite/gsk/compare/scaled-texture-scale-clip-nocairo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 B |
@ -134,6 +134,7 @@ compare_render_tests = [
|
||||
'scaled-cairo',
|
||||
'scaled-texture',
|
||||
'scaled-texture-scale',
|
||||
'scaled-texture-scale-clip-nocairo',
|
||||
'scale0-crash',
|
||||
'shadow-behind',
|
||||
'shadow-clip-contents',
|
||||
|
Loading…
Reference in New Issue
Block a user