From f0c610444453810dfefda31b609589c3e43c563f Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 15 Apr 2021 16:21:23 +0300 Subject: [PATCH] libweston: remove weston_output_set_renderer_shadow_buffer() This is no longer used. This was originally added in b5265af620956294ff997c384b2d68dad2159d19. Signed-off-by: Pekka Paalanen --- include/libweston/libweston.h | 4 ---- libweston/compositor.c | 33 --------------------------------- 2 files changed, 37 deletions(-) diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index 5ee0da8c..4b941e31 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -373,7 +373,6 @@ struct weston_output { bool enabled; /**< is in the output_list, not pending list */ int scale; - bool use_renderer_shadow_buffer; struct weston_color_transform *from_sRGB_to_output; struct weston_color_transform *from_sRGB_to_blend; struct weston_color_transform *from_blend_to_output; @@ -2082,9 +2081,6 @@ void weston_output_set_transform(struct weston_output *output, uint32_t transform); -bool -weston_output_set_renderer_shadow_buffer(struct weston_output *output); - void weston_output_init(struct weston_output *output, struct weston_compositor *compositor, diff --git a/libweston/compositor.c b/libweston/compositor.c index f762225b..8f9de03e 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -6464,39 +6464,6 @@ weston_output_set_transform(struct weston_output *output, } } -/** Make the output use renderer shadow buffer. - * - * \param output The weston_output object to modify. - * \return True on success, false if unsupported. - * - * This can only be set on a disabled output object. - * - * This is a temporary API to demonstrate WESTON_CAP_COLOR_OPS and allow - * testing related features. This will be superseded with color management - * API. - * - * By default, a renderer is not using a shadow buffer of its own. Enabling - * a shadow buffer may enable other color related features. - * - * Support depends on the chosen renderer and the graphics driver stack in use. - * - * \ingroup output - */ -WL_EXPORT bool -weston_output_set_renderer_shadow_buffer(struct weston_output *output) -{ - struct weston_compositor *compositor = output->compositor; - - assert(!output->enabled); - - if (compositor->capabilities & WESTON_CAP_COLOR_OPS) { - output->use_renderer_shadow_buffer = true; - return true; - } - - return false; -} - /** Initializes a weston_output object with enough data so ** an output can be configured. *