mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 03:38:03 +02:00
libweston: remove weston_output_set_renderer_shadow_buffer()
This is no longer used.
This was originally added in b5265af620.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
478123b967
commit
f0c6104444
2 changed files with 0 additions and 37 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue