ivi-shell: remove ivi_layout_layer_get_visibility 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
c6a138c6f0
commit
17610f240b
@@ -528,15 +528,6 @@ struct ivi_layout_interface {
|
|||||||
int32_t (*layer_set_visibility)(struct ivi_layout_layer *ivilayer,
|
int32_t (*layer_set_visibility)(struct ivi_layout_layer *ivilayer,
|
||||||
bool newVisibility);
|
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.
|
* \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;
|
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
|
int32_t
|
||||||
ivi_layout_layer_set_opacity(struct ivi_layout_layer *ivilayer,
|
ivi_layout_layer_set_opacity(struct ivi_layout_layer *ivilayer,
|
||||||
wl_fixed_t opacity)
|
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_under_surface = ivi_layout_get_layers_under_surface,
|
||||||
.get_layers_on_screen = ivi_layout_get_layers_on_screen,
|
.get_layers_on_screen = ivi_layout_get_layers_on_screen,
|
||||||
.layer_set_visibility = ivi_layout_layer_set_visibility,
|
.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_set_opacity = ivi_layout_layer_set_opacity,
|
||||||
.layer_get_opacity = ivi_layout_layer_get_opacity,
|
.layer_get_opacity = ivi_layout_layer_get_opacity,
|
||||||
.layer_set_source_rectangle = ivi_layout_layer_set_source_rectangle,
|
.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);
|
ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300);
|
||||||
iassert(ivilayer != NULL);
|
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_set_visibility(ivilayer, true) == IVI_SUCCEEDED);
|
||||||
|
|
||||||
iassert(lyt->layer_get_visibility(ivilayer) == false);
|
iassert(prop->visibility == false);
|
||||||
|
|
||||||
lyt->commit_changes();
|
lyt->commit_changes();
|
||||||
|
|
||||||
iassert(lyt->layer_get_visibility(ivilayer) == true);
|
|
||||||
|
|
||||||
prop = lyt->get_properties_of_layer(ivilayer);
|
|
||||||
iassert(prop->visibility == true);
|
iassert(prop->visibility == true);
|
||||||
|
|
||||||
lyt->layer_destroy(ivilayer);
|
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);
|
iassert(lyt->layer_set_visibility(NULL, true) == IVI_FAILED);
|
||||||
|
|
||||||
lyt->commit_changes();
|
lyt->commit_changes();
|
||||||
|
|
||||||
iassert(lyt->layer_get_visibility(NULL) == false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user