Commit 17610f24 authored by eucan's avatar eucan Committed by Bryce Harrington

ivi-shell: remove ivi_layout_layer_get_visibility API

Signed-off-by: eucan's avatarEmre Ucan <eucan@de.adit-jv.com>
Acked-by: default avatarwataru_natsume <wataru_natsume@xddp.denso.co.jp>
Reviewed-by: default avatarBryce Harrington <bryce@osg.samsung.com>
parent c6a138c6
......@@ -528,15 +528,6 @@ struct ivi_layout_interface {
int32_t (*layer_set_visibility)(struct ivi_layout_layer *ivilayer,
bool newVisibility);
/**
* \brief Get the visibility of a layer. If a layer is not visible,
* the layer and its surfaces will not be rendered.
*
* \return true if layer is visible
* \return false if layer is invisible or the method call was failed
*/
bool (*layer_get_visibility)(struct ivi_layout_layer *ivilayer);
/**
* \brief Set the opacity of a ivi_layer.
*
......
......@@ -1786,17 +1786,6 @@ ivi_layout_layer_set_visibility(struct ivi_layout_layer *ivilayer,
return IVI_SUCCEEDED;
}
static bool
ivi_layout_layer_get_visibility(struct ivi_layout_layer *ivilayer)
{
if (ivilayer == NULL) {
weston_log("ivi_layout_layer_get_visibility: invalid argument\n");
return false;
}
return ivilayer->prop.visibility;
}
int32_t
ivi_layout_layer_set_opacity(struct ivi_layout_layer *ivilayer,
wl_fixed_t opacity)
......@@ -2767,7 +2756,6 @@ static struct ivi_layout_interface ivi_layout_interface = {
.get_layers_under_surface = ivi_layout_get_layers_under_surface,
.get_layers_on_screen = ivi_layout_get_layers_on_screen,
.layer_set_visibility = ivi_layout_layer_set_visibility,
.layer_get_visibility = ivi_layout_layer_get_visibility,
.layer_set_opacity = ivi_layout_layer_set_opacity,
.layer_get_opacity = ivi_layout_layer_get_opacity,
.layer_set_source_rectangle = ivi_layout_layer_set_source_rectangle,
......
......@@ -177,17 +177,16 @@ test_layer_visibility(struct test_context *ctx)
ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300);
iassert(ivilayer != NULL);
iassert(lyt->layer_get_visibility(ivilayer) == false);
prop = lyt->get_properties_of_layer(ivilayer);
iassert(prop->visibility == false);
iassert(lyt->layer_set_visibility(ivilayer, true) == IVI_SUCCEEDED);
iassert(lyt->layer_get_visibility(ivilayer) == false);
iassert(prop->visibility == false);
lyt->commit_changes();
iassert(lyt->layer_get_visibility(ivilayer) == true);
prop = lyt->get_properties_of_layer(ivilayer);
iassert(prop->visibility == true);
lyt->layer_destroy(ivilayer);
......@@ -424,8 +423,6 @@ test_layer_bad_visibility(struct test_context *ctx)
iassert(lyt->layer_set_visibility(NULL, true) == IVI_FAILED);
lyt->commit_changes();
iassert(lyt->layer_get_visibility(NULL) == false);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment