ivi-shell: remove ivi_layout_get_screen_resolution API

The controller plugins can get the screen resolution directly from
weston output. Therefore, this API is not required.

Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Wataru Natsume <wnatsume@jp.adit-jv.com>
This commit is contained in:
Ucan, Emre (ADITG/SW1)
2016-03-17 15:30:35 +00:00
committed by Pekka Paalanen
parent d56b90d948
commit ff6a9f8474
4 changed files with 11 additions and 97 deletions
-52
View File
@@ -564,33 +564,6 @@ test_screen_id(struct test_context *ctx)
free(iviscrns);
}
static void
test_screen_resolution(struct test_context *ctx)
{
const struct ivi_layout_interface *lyt = ctx->layout_interface;
struct ivi_layout_screen **iviscrns;
int32_t screen_length = 0;
struct weston_output *output;
int32_t width;
int32_t height;
int32_t i;
iassert(lyt->get_screens(&screen_length, &iviscrns) == IVI_SUCCEEDED);
iassert(screen_length > 0);
for (i = 0; i < screen_length; ++i) {
output = lyt->screen_get_output(iviscrns[i]);
iassert(output != NULL);
iassert(lyt->get_screen_resolution(
iviscrns[i], &width, &height) == IVI_SUCCEEDED);
iassert(width == output->current_mode->width);
iassert(height == output->current_mode->height);
}
if (screen_length > 0)
free(iviscrns);
}
static void
test_screen_render_order(struct test_context *ctx)
{
@@ -643,29 +616,6 @@ test_screen_render_order(struct test_context *ctx)
#undef LAYER_NUM
}
static void
test_screen_bad_resolution(struct test_context *ctx)
{
const struct ivi_layout_interface *lyt = ctx->layout_interface;
struct ivi_layout_screen **iviscrns;
int32_t screen_length = 0;
struct ivi_layout_screen *iviscrn;
int32_t width;
int32_t height;
iassert(lyt->get_screens(&screen_length, &iviscrns) == IVI_SUCCEEDED);
iassert(screen_length > 0);
if (screen_length <= 0)
return;
iviscrn = iviscrns[0];
iassert(lyt->get_screen_resolution(NULL, &width, &height) == IVI_FAILED);
iassert(lyt->get_screen_resolution(iviscrn, NULL, &height) == IVI_FAILED);
iassert(lyt->get_screen_resolution(iviscrn, &width, NULL) == IVI_FAILED);
free(iviscrns);
}
static void
test_screen_bad_render_order(struct test_context *ctx)
{
@@ -989,9 +939,7 @@ run_internal_tests(void *data)
test_get_layer_after_destory_layer(ctx);
test_screen_id(ctx);
test_screen_resolution(ctx);
test_screen_render_order(ctx);
test_screen_bad_resolution(ctx);
test_screen_bad_render_order(ctx);
test_commit_changes_after_render_order_set_layer_destroy(ctx);