summaryrefslogtreecommitdiff
path: root/ivi-shell
diff options
context:
space:
mode:
authorUcan, Emre (ADITG/SW1) <eucan@de.adit-jv.com>2017-03-03 14:21:31 +0000
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-07-24 13:33:00 +0300
commit6e423ed99672f5fc0c672e3601528c2c0d668ec8 (patch)
tree3bb5f4d63f55416db8f899e0aaedb05405961d6a /ivi-shell
parent9337197f8223897c7bbd17a33ad9d2a55ef89ddb (diff)
ivi-shell: remove layer_set_orientation API
This API is used to rotate the contents of application's buffer, which are in the render order list of the layer. But this API 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')
-rw-r--r--ivi-shell/ivi-layout-export.h9
-rw-r--r--ivi-shell/ivi-layout.c23
2 files changed, 0 insertions, 32 deletions
diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
index f8802544..afbb1101 100644
--- a/ivi-shell/ivi-layout-export.h
+++ b/ivi-shell/ivi-layout-export.h
@@ -453,15 +453,6 @@ struct ivi_layout_interface {
int32_t width, int32_t height);
/**
- * \brief Sets the orientation of a ivi_layer.
- *
- * \return IVI_SUCCEEDED if the method call was successful
- * \return IVI_FAILED if the method call was failed
- */
- int32_t (*layer_set_orientation)(struct ivi_layout_layer *ivilayer,
- enum wl_output_transform orientation);
-
- /**
* \brief Add a ivi_surface to a ivi_layer which is currently managed by the service
*
* \return IVI_SUCCEEDED if the method call was successful
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 3a0d3198..60e381c3 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -1489,28 +1489,6 @@ ivi_layout_layer_set_destination_rectangle(struct ivi_layout_layer *ivilayer,
return IVI_SUCCEEDED;
}
-static int32_t
-ivi_layout_layer_set_orientation(struct ivi_layout_layer *ivilayer,
- enum wl_output_transform orientation)
-{
- struct ivi_layout_layer_properties *prop = NULL;
-
- if (ivilayer == NULL) {
- weston_log("ivi_layout_layer_set_orientation: invalid argument\n");
- return IVI_FAILED;
- }
-
- prop = &ivilayer->pending.prop;
- prop->orientation = orientation;
-
- if (ivilayer->prop.orientation != orientation)
- prop->event_mask |= IVI_NOTIFICATION_ORIENTATION;
- else
- prop->event_mask &= ~IVI_NOTIFICATION_ORIENTATION;
-
- return IVI_SUCCEEDED;
-}
-
int32_t
ivi_layout_layer_set_render_order(struct ivi_layout_layer *ivilayer,
struct ivi_layout_surface **pSurface,
@@ -2074,7 +2052,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_orientation = ivi_layout_layer_set_orientation,
.layer_add_surface = ivi_layout_layer_add_surface,
.layer_remove_surface = ivi_layout_layer_remove_surface,
.layer_set_render_order = ivi_layout_layer_set_render_order,