ivi-shell: remove ivi_layout_layer_get_orientation 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>
This commit is contained in:
committed by
Bryce Harrington
parent
4d9001bc49
commit
5bb068d16d
@@ -553,16 +553,6 @@ struct ivi_layout_interface {
|
|||||||
int32_t (*layer_set_orientation)(struct ivi_layout_layer *ivilayer,
|
int32_t (*layer_set_orientation)(struct ivi_layout_layer *ivilayer,
|
||||||
enum wl_output_transform orientation);
|
enum wl_output_transform orientation);
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief Gets the orientation of a layer.
|
|
||||||
*
|
|
||||||
* \return (enum wl_output_transform)
|
|
||||||
* if the method call was successful
|
|
||||||
* \return WL_OUTPUT_TRANSFORM_NORMAL if the method call was failed
|
|
||||||
*/
|
|
||||||
enum wl_output_transform
|
|
||||||
(*layer_get_orientation)(struct ivi_layout_layer *ivilayer);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Add a ivi_surface to a ivi_layer which is currently managed by the service
|
* \brief Add a ivi_surface to a ivi_layer which is currently managed by the service
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1936,17 +1936,6 @@ ivi_layout_layer_set_orientation(struct ivi_layout_layer *ivilayer,
|
|||||||
return IVI_SUCCEEDED;
|
return IVI_SUCCEEDED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum wl_output_transform
|
|
||||||
ivi_layout_layer_get_orientation(struct ivi_layout_layer *ivilayer)
|
|
||||||
{
|
|
||||||
if (ivilayer == NULL) {
|
|
||||||
weston_log("ivi_layout_layer_get_orientation: invalid argument\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return ivilayer->prop.orientation;
|
|
||||||
}
|
|
||||||
|
|
||||||
int32_t
|
int32_t
|
||||||
ivi_layout_layer_set_render_order(struct ivi_layout_layer *ivilayer,
|
ivi_layout_layer_set_render_order(struct ivi_layout_layer *ivilayer,
|
||||||
struct ivi_layout_surface **pSurface,
|
struct ivi_layout_surface **pSurface,
|
||||||
@@ -2665,7 +2654,6 @@ static struct ivi_layout_interface ivi_layout_interface = {
|
|||||||
.layer_set_position = ivi_layout_layer_set_position,
|
.layer_set_position = ivi_layout_layer_set_position,
|
||||||
.layer_set_dimension = ivi_layout_layer_set_dimension,
|
.layer_set_dimension = ivi_layout_layer_set_dimension,
|
||||||
.layer_set_orientation = ivi_layout_layer_set_orientation,
|
.layer_set_orientation = ivi_layout_layer_set_orientation,
|
||||||
.layer_get_orientation = ivi_layout_layer_get_orientation,
|
|
||||||
.layer_add_surface = ivi_layout_layer_add_surface,
|
.layer_add_surface = ivi_layout_layer_add_surface,
|
||||||
.layer_remove_surface = ivi_layout_layer_remove_surface,
|
.layer_remove_surface = ivi_layout_layer_remove_surface,
|
||||||
.layer_set_render_order = ivi_layout_layer_set_render_order,
|
.layer_set_render_order = ivi_layout_layer_set_render_order,
|
||||||
|
|||||||
@@ -211,18 +211,16 @@ test_layer_orientation(struct test_context *ctx)
|
|||||||
ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300);
|
ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300);
|
||||||
iassert(ivilayer != NULL);
|
iassert(ivilayer != NULL);
|
||||||
|
|
||||||
iassert(lyt->layer_get_orientation(ivilayer) == WL_OUTPUT_TRANSFORM_NORMAL);
|
prop = lyt->get_properties_of_layer(ivilayer);
|
||||||
|
iassert(prop->orientation == WL_OUTPUT_TRANSFORM_NORMAL);
|
||||||
|
|
||||||
iassert(lyt->layer_set_orientation(
|
iassert(lyt->layer_set_orientation(
|
||||||
ivilayer, WL_OUTPUT_TRANSFORM_90) == IVI_SUCCEEDED);
|
ivilayer, WL_OUTPUT_TRANSFORM_90) == IVI_SUCCEEDED);
|
||||||
|
|
||||||
iassert(lyt->layer_get_orientation(ivilayer) == WL_OUTPUT_TRANSFORM_NORMAL);
|
iassert(prop->orientation == WL_OUTPUT_TRANSFORM_NORMAL);
|
||||||
|
|
||||||
lyt->commit_changes();
|
lyt->commit_changes();
|
||||||
|
|
||||||
iassert(lyt->layer_get_orientation(ivilayer) == WL_OUTPUT_TRANSFORM_90);
|
|
||||||
|
|
||||||
prop = lyt->get_properties_of_layer(ivilayer);
|
|
||||||
iassert(prop->orientation == WL_OUTPUT_TRANSFORM_90);
|
iassert(prop->orientation == WL_OUTPUT_TRANSFORM_90);
|
||||||
|
|
||||||
lyt->layer_destroy(ivilayer);
|
lyt->layer_destroy(ivilayer);
|
||||||
@@ -428,8 +426,6 @@ test_layer_bad_orientation(struct test_context *ctx)
|
|||||||
NULL, WL_OUTPUT_TRANSFORM_90) == IVI_FAILED);
|
NULL, WL_OUTPUT_TRANSFORM_90) == IVI_FAILED);
|
||||||
|
|
||||||
lyt->commit_changes();
|
lyt->commit_changes();
|
||||||
|
|
||||||
iassert(lyt->layer_get_orientation(NULL) == WL_OUTPUT_TRANSFORM_NORMAL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user