mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 14:18:32 +02:00
color: remove unnecessary cm_image_desc->cprof checks
Since "color: refactor cm_image_desc_create()" if cm_image_desc exists then the cprof exists as well. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
e61c499685
commit
ae62283724
1 changed files with 0 additions and 15 deletions
|
|
@ -384,13 +384,6 @@ image_description_get_information(struct wl_client *client,
|
|||
return;
|
||||
}
|
||||
|
||||
if (!cm_image_desc->cprof) {
|
||||
wl_resource_post_error(cm_image_desc_res,
|
||||
WP_IMAGE_DESCRIPTION_V1_ERROR_NOT_READY,
|
||||
"image description not ready yet");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!cm_image_desc->supports_get_info) {
|
||||
wl_resource_post_error(cm_image_desc_res,
|
||||
WP_IMAGE_DESCRIPTION_V1_ERROR_NO_INFORMATION,
|
||||
|
|
@ -712,14 +705,6 @@ cm_surface_set_image_description(struct wl_client *client,
|
|||
return;
|
||||
}
|
||||
|
||||
/* Invalid image description for this request, as it isn't ready yet. */
|
||||
if (!cm_image_desc->cprof) {
|
||||
wl_resource_post_error(cm_surface_res,
|
||||
WP_COLOR_MANAGEMENT_SURFACE_V1_ERROR_IMAGE_DESCRIPTION,
|
||||
"the image description is not ready");
|
||||
return;
|
||||
}
|
||||
|
||||
cm = cm_image_desc->cm;
|
||||
|
||||
render_intent = weston_render_intent_info_from_protocol(surface->compositor,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue