diff options
author | Ucan, Emre \(ADITG/SW1\) <eucan@de.adit-jv.com> | 2016-03-04 12:50:50 +0000 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-03-04 10:33:34 -0800 |
commit | 45d394281628a5b1c9615920b975a2e7dd7210e0 (patch) | |
tree | 73361e27799e7f622372421b54669b9ec4ae698f /ivi-shell | |
parent | e62bfd8d5e440fcdc23f42077d7e3096d8335d82 (diff) | |
download | weston-45d394281628a5b1c9615920b975a2e7dd7210e0.tar.gz |
ivi-shell: remove ivi_layout_surface_set_dimension API
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'ivi-shell')
-rw-r--r-- | ivi-shell/ivi-layout-export.h | 9 | ||||
-rw-r--r-- | ivi-shell/ivi-layout.c | 25 |
2 files changed, 0 insertions, 34 deletions
diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h index 1a16b449..f0799313 100644 --- a/ivi-shell/ivi-layout-export.h +++ b/ivi-shell/ivi-layout-export.h @@ -312,15 +312,6 @@ struct ivi_layout_interface { int32_t width, int32_t height); /** - * \brief Set the horizontal and vertical dimension of the surface. - * - * \return IVI_SUCCEEDED if the method call was successful - * \return IVI_FAILED if the method call was failed - */ - int32_t (*surface_set_dimension)(struct ivi_layout_surface *ivisurf, - int32_t dest_width, int32_t dest_height); - - /** * \brief Sets the orientation of a ivi_surface. * * \return IVI_SUCCEEDED if the method call was successful diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index ee987547..cbb825dd 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -2030,30 +2030,6 @@ ivi_layout_surface_set_destination_rectangle(struct ivi_layout_surface *ivisurf, } static int32_t -ivi_layout_surface_set_dimension(struct ivi_layout_surface *ivisurf, - int32_t dest_width, int32_t dest_height) -{ - struct ivi_layout_surface_properties *prop = NULL; - - if (ivisurf == NULL) { - weston_log("ivi_layout_surface_set_dimension: invalid argument\n"); - return IVI_FAILED; - } - - prop = &ivisurf->pending.prop; - prop->dest_width = dest_width; - prop->dest_height = dest_height; - - if (ivisurf->prop.dest_width != dest_width || - ivisurf->prop.dest_height != dest_height) - ivisurf->event_mask |= IVI_NOTIFICATION_DIMENSION; - else - ivisurf->event_mask &= ~IVI_NOTIFICATION_DIMENSION; - - return IVI_SUCCEEDED; -} - -static int32_t ivi_layout_surface_set_orientation(struct ivi_layout_surface *ivisurf, enum wl_output_transform orientation) { @@ -2576,7 +2552,6 @@ static struct ivi_layout_interface ivi_layout_interface = { .surface_set_opacity = ivi_layout_surface_set_opacity, .surface_set_source_rectangle = ivi_layout_surface_set_source_rectangle, .surface_set_destination_rectangle = ivi_layout_surface_set_destination_rectangle, - .surface_set_dimension = ivi_layout_surface_set_dimension, .surface_set_orientation = ivi_layout_surface_set_orientation, .surface_set_content_observer = ivi_layout_surface_set_content_observer, .surface_add_notification = ivi_layout_surface_add_notification, |