Skip to content

tests: cover the wayland window surface rendering#156

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/wayland-window-render
Open

tests: cover the wayland window surface rendering#156
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/wayland-window-render

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

Adds a rendering test for the Wayland shared-memory window surface.

Unlike the offscreen rendering test, this draws into a real window content view
backed by the wl_shm surface and reads the pixels back: a solid fill paints the
window and filling the left half leaves the right half alone, which exercises
the shm surface cairo drawing and the GSReadRect read-back through the on-window
path.

It builds only for the wayland+cairo backend and skips when no compositor can be
reached, so it is inert on the other backends and in CI.

Adds a rendering test for the Wayland shared-memory window surface.

Unlike the offscreen rendering test, this draws into a real window content view
backed by the wl_shm surface and reads the pixels back: a solid fill paints the
window and filling the left half leaves the right half alone, which exercises
the shm surface cairo drawing and the GSReadRect read-back through the on-window
path.

It builds only for the wayland+cairo backend and skips when no compositor can be
reached, so it is inert on the other backends and in CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant