Skip to content
Snippets Groups Projects

Clarify behavior of buffer transformations

Merged Julian Orth requested to merge mahkoh/wayland:jorth/transform into main
1 file
+ 12
7
Compare changes
  • Side-by-side
  • Inline
+ 12
7
@@ -1702,10 +1702,15 @@
<request name="set_buffer_transform" since="2">
<description summary="sets the buffer transformation">
This request sets an optional transformation on how the compositor
interprets the contents of the buffer attached to the surface. The
accepted values for the transform parameter are the values for
wl_output.transform.
This request sets the transformation that the client has applied to
the buffer relative to the surface. The accepted values for the
transform parameter are the values for wl_output.transform.
The compositor will apply the inverse transformation to the buffer
before positioning it in surface space. If the surface is displayed on
an output and the client set a buffer transformation that is identical
to the transformation of the output, then the compositor can display
it on the output without applying any rotation or mirroring.
Buffer transform is double-buffered state, see wl_surface.commit.
@@ -2723,9 +2728,9 @@
<enum name="transform">
<description summary="transform from framebuffer to output">
This describes the transform that a compositor will apply to a
surface to compensate for the rotation or mirroring of an
output device.
This describes the transformation that the compositor will apply to
surface space before displaying it on the output device. This is to
compensate for the rotation or mirroring of the device.
The flipped values correspond to an initial flip around a
vertical axis followed by rotation.
Loading