diff --git a/protocol/wayland.xml b/protocol/wayland.xml index de6756b4..7ccfe70d 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -305,9 +305,6 @@ The drm format codes match the macros defined in drm_fourcc.h, except argb8888 and xrgb8888. The formats actually supported by the compositor will be reported by the format event. - - For all wl_shm formats and unless specified in another protocol - extension, pre-multiplied alpha is used for pixel values. @@ -499,12 +496,6 @@ client provides and updates the contents is defined by the buffer factory interface. - Color channels are assumed to be electrical rather than optical (in other - words, encoded with a transfer function) unless otherwise specified. If - the buffer uses a format that has an alpha channel, the alpha channel is - assumed to be premultiplied into the electrical color channel values - (after transfer function encoding) unless otherwise specified. - Note, because wl_buffer objects are created from multiple independent factory interfaces, the wl_buffer interface is frozen at version 1. @@ -1546,6 +1537,13 @@ maximise compatibility should not destroy pending buffers and should ensure that they explicitly remove content from surfaces, even after destroying buffers. + + Unless specified otherwise by a protocol extension, the compositor + assumes that the values stored in the wl_buffer use pre-multiplied + alpha, are pre-multiplied in electrical values, use an + implementation-defined color space, and use an implementation-defined + transfer function. These color spaces and transfer functions are usually + sRGB, but this depends on the compositor.