color: simplify color manager API with weston_output_color_outcome

I am going to need to add yet another output property to be set by a
color manager: HDR Static Metadata Type 1. With the old color manager
API design, I would have needed to add the fourth function pointer to be
called always in the same group as the previous three. This seemed more
convoluted than it needs to be.

Therefore collapse the three existing function pointers in the API into
just one that is resposible for setting up all three things.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen
2022-04-29 11:20:34 +03:00
committed by Pekka Paalanen
parent 6c0524fd80
commit dfba19abde
5 changed files with 70 additions and 134 deletions
-3
View File
@@ -415,9 +415,6 @@ struct weston_output {
bool from_blend_to_output_by_backend;
enum weston_eotf_mode eotf_mode;
/* XXX: temporary allocation to be removed in the next commit */
struct weston_output_color_outcome colorout_;
struct weston_output_color_outcome *color_outcome;
int (*enable)(struct weston_output *output);