From 16d1fa156abd296a69afed0df8588b7d33d6cb0d Mon Sep 17 00:00:00 2001 From: "Ucan, Emre \\(ADITG/SW1\\)" Date: Fri, 4 Mar 2016 12:50:52 +0000 Subject: ivi-shell: remove ivi_layout_layer_set_dimension API Signed-off-by: Emre Ucan Acked-by: wataru_natsume Reviewed-by: Bryce Harrington --- ivi-shell/ivi-layout-export.h | 9 --------- ivi-shell/ivi-layout.c | 26 -------------------------- 2 files changed, 35 deletions(-) (limited to 'ivi-shell') diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h index f0799313..85bf91ab 100644 --- a/ivi-shell/ivi-layout-export.h +++ b/ivi-shell/ivi-layout-export.h @@ -508,15 +508,6 @@ struct ivi_layout_interface { int32_t x, int32_t y, int32_t width, int32_t height); - /** - * \brief Set the horizontal and vertical dimension of the layer. - * - * \return IVI_SUCCEEDED if the method call was successful - * \return IVI_FAILED if the method call was failed - */ - int32_t (*layer_set_dimension)(struct ivi_layout_layer *ivilayer, - int32_t dest_width, int32_t dest_height); - /** * \brief Sets the orientation of a ivi_layer. * diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index cbb825dd..c324b5eb 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -1866,31 +1866,6 @@ ivi_layout_layer_set_destination_rectangle(struct ivi_layout_layer *ivilayer, return IVI_SUCCEEDED; } -static int32_t -ivi_layout_layer_set_dimension(struct ivi_layout_layer *ivilayer, - int32_t dest_width, int32_t dest_height) -{ - struct ivi_layout_layer_properties *prop = NULL; - - if (ivilayer == NULL) { - weston_log("ivi_layout_layer_set_dimension: invalid argument\n"); - return IVI_FAILED; - } - - prop = &ivilayer->pending.prop; - - prop->dest_width = dest_width; - prop->dest_height = dest_height; - - if (ivilayer->prop.dest_width != dest_width || - ivilayer->prop.dest_height != dest_height) - ivilayer->event_mask |= IVI_NOTIFICATION_DIMENSION; - else - ivilayer->event_mask &= ~IVI_NOTIFICATION_DIMENSION; - - return IVI_SUCCEEDED; -} - static int32_t ivi_layout_layer_set_orientation(struct ivi_layout_layer *ivilayer, enum wl_output_transform orientation) @@ -2579,7 +2554,6 @@ static struct ivi_layout_interface ivi_layout_interface = { .layer_set_opacity = ivi_layout_layer_set_opacity, .layer_set_source_rectangle = ivi_layout_layer_set_source_rectangle, .layer_set_destination_rectangle = ivi_layout_layer_set_destination_rectangle, - .layer_set_dimension = ivi_layout_layer_set_dimension, .layer_set_orientation = ivi_layout_layer_set_orientation, .layer_add_surface = ivi_layout_layer_add_surface, .layer_remove_surface = ivi_layout_layer_remove_surface, -- cgit v1.2.1