tests/wayland: Add test for buffer transforms

Ensure that buffer transforms are correctly rendered.

This test would fail without the commit
"wayland/surface: Swap 90 and 270 degree transforms"

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1055>
This commit is contained in:
Robert Mader 2022-05-21 18:18:01 +02:00 committed by Marge Bot
parent 11fc5b6c6c
commit b988fd73c9
10 changed files with 15 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -46,6 +46,9 @@ common_sources = [
]
wayland_test_clients = [
{
'name': 'buffer-transform',
},
{
'name': 'subsurface-remap-toplevel',
},

View File

@ -65,6 +65,16 @@ subsurface_remap_toplevel (void)
meta_wayland_test_client_finish (wayland_test_client);
}
static void
buffer_transform (void)
{
MetaWaylandTestClient *wayland_test_client;
wayland_test_client =
meta_wayland_test_client_new ("buffer-transform");
meta_wayland_test_client_finish (wayland_test_client);
}
static void
subsurface_reparenting (void)
{
@ -656,6 +666,8 @@ on_after_tests (void)
static void
init_tests (void)
{
g_test_add_func ("/wayland/buffer/transform",
buffer_transform);
g_test_add_func ("/wayland/subsurface/remap-toplevel",
subsurface_remap_toplevel);
g_test_add_func ("/wayland/subsurface/reparent",