From: Boram Park Date: Fri, 29 Sep 2017 02:28:54 +0000 (+0900) Subject: Revert "implementation for SCREEN_PREROTATION_HINT" X-Git-Tag: accepted/tizen/4.0/unified/20171011.071310~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3f88ed1621fe5faa747ae128a0b1788c1d027a2;p=platform%2Fcore%2Fuifw%2Flibtdm.git Revert "implementation for SCREEN_PREROTATION_HINT" This reverts commit f4aa0253c0f401b86bf1769e200b216cd2d8b66d. Change-Id: Ic15d3a1815bbf9eab57240cc50514c9937bcf662 --- diff --git a/tools/tdm_test_server.c b/tools/tdm_test_server.c index 0c30519..b42a0fb 100644 --- a/tools/tdm_test_server.c +++ b/tools/tdm_test_server.c @@ -760,7 +760,6 @@ interpret_args(tdm_test_server *data) } } -static unsigned int tts_screen_prerotation_hint; static tdm_test_server tts_data; static int tts_buffer_key; #define TTS_BUFFER_KEY ((unsigned long)&tts_buffer_key) @@ -770,8 +769,6 @@ buffer_allocate(int width, int height, int format, int flags) { tdm_test_server_buffer *tb = calloc(1, sizeof *tb); TDM_EXIT_IF_FAIL(tb != NULL); - if (tts_screen_prerotation_hint % 180) - TDM_SWAP(width, height); tb->b = tbm_surface_internal_create_with_flags(width, height, format, flags); TDM_EXIT_IF_FAIL(tb->b != NULL); tdm_helper_clear_buffer(tb->b); @@ -859,14 +856,6 @@ main(int argc, char *argv[]) char temp[TDM_SERVER_REPLY_MSG_LEN]; int len = sizeof temp; tdm_error ret; - const char *value; - - value = (const char*)getenv("SCREEN_PREROTATION_HINT"); - if (value) { - char *end; - tts_screen_prerotation_hint = strtol(value, &end, 10); - printf("SCREEN_PREROTATION_HINT = %d", tts_screen_prerotation_hint); - } memset(data, 0, sizeof * data); LIST_INITHEAD(&data->output_list); @@ -1054,22 +1043,12 @@ layer_setup(tdm_test_server_layer *l, tbm_surface_h b) /* The size and format information should be same with buffer's */ tbm_surface_get_info(b, &info); - if (tts_screen_prerotation_hint % 180) { - if (IS_RGB(info.format)) { - l->info.src_config.size.h = info.height; - l->info.src_config.size.v = info.planes[0].stride >> 2; - } else { - l->info.src_config.size.h = info.height; - l->info.src_config.size.v = info.planes[0].stride; - } + if (IS_RGB(info.format)) { + l->info.src_config.size.h = info.planes[0].stride >> 2; + l->info.src_config.size.v = info.height; } else { - if (IS_RGB(info.format)) { - l->info.src_config.size.h = info.planes[0].stride >> 2; - l->info.src_config.size.v = info.height; - } else { - l->info.src_config.size.h = info.planes[0].stride; - l->info.src_config.size.v = info.height; - } + l->info.src_config.size.h = info.planes[0].stride; + l->info.src_config.size.v = info.height; } l->info.src_config.format = info.format;