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:
committed by
Pekka Paalanen
parent
6c0524fd80
commit
dfba19abde
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user