color: explain why we don't unset surface image description

There's a comment with a TODO that would be super simple to implement,
but we preferred to wait at the moment. But there are discussions on the
upstream CM&HDR protocol MR that would change that. This patch documents
that.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2024-04-15 17:41:43 -03:00 committed by Pekka Paalanen
parent b3f115dfc0
commit 4ee612253e
1 changed files with 7 additions and 1 deletions

View File

@ -691,7 +691,13 @@ cm_surface_resource_destroy(struct wl_resource *cm_surface_res)
/* TODO: if wl_list_empty(&surface->cm_surface_resource_list), we need
* to unset_image_description for the surface. The protocol states that
* we need to do that after the last cm_surface object for a wl_surface
* is destroyed. */
* is destroyed.
*
* We still didn't add the code for that because there are discussions
* on the protocol upstream to allow a single cm_surface per surface.
* Once that reaches a conclusion and the changes land on the xx version
* of the protocol, we need to update this.
*/
}
static const struct xx_color_management_surface_v2_interface