summaryrefslogtreecommitdiff
path: root/ivi-shell/ivi-layout.c
diff options
context:
space:
mode:
authorUcan, Emre (ADITG/SW1) <eucan@de.adit-jv.com>2017-03-03 14:21:28 +0000
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-07-24 13:32:48 +0300
commit9337197f8223897c7bbd17a33ad9d2a55ef89ddb (patch)
treedc9466ef4eb6354c80b2f065da35f8905d3631a3 /ivi-shell/ivi-layout.c
parentdeee858b0b199d8cfa8033a46d7078f30b23725e (diff)
ivi-shell: remove surface_set_orientation API
This API is used to rotate the contents of application's buffer. But it is not needed because an application can rotate its buffers with set_buffer_transform request of wl_surface interface. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'ivi-shell/ivi-layout.c')
-rw-r--r--ivi-shell/ivi-layout.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 8e4280ba..3a0d3198 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -1621,28 +1621,6 @@ ivi_layout_surface_set_destination_rectangle(struct ivi_layout_surface *ivisurf,
}
static int32_t
-ivi_layout_surface_set_orientation(struct ivi_layout_surface *ivisurf,
- enum wl_output_transform orientation)
-{
- struct ivi_layout_surface_properties *prop = NULL;
-
- if (ivisurf == NULL) {
- weston_log("ivi_layout_surface_set_orientation: invalid argument\n");
- return IVI_FAILED;
- }
-
- prop = &ivisurf->pending.prop;
- prop->orientation = orientation;
-
- if (ivisurf->prop.orientation != orientation)
- prop->event_mask |= IVI_NOTIFICATION_ORIENTATION;
- else
- prop->event_mask &= ~IVI_NOTIFICATION_ORIENTATION;
-
- return IVI_SUCCEEDED;
-}
-
-static int32_t
ivi_layout_screen_add_layer(struct weston_output *output,
struct ivi_layout_layer *addlayer)
{
@@ -2074,7 +2052,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_orientation = ivi_layout_surface_set_orientation,
.surface_add_listener = ivi_layout_surface_add_listener,
.surface_get_weston_surface = ivi_layout_surface_get_weston_surface,
.surface_set_transition = ivi_layout_surface_set_transition,