Revert "implementation for SCREEN_PREROTATION_HINT" 13/153613/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 29 Sep 2017 02:28:54 +0000 (11:28 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 29 Sep 2017 02:40:04 +0000 (11:40 +0900)
This reverts commit f4aa0253c0f401b86bf1769e200b216cd2d8b66d.

Change-Id: Ic15d3a1815bbf9eab57240cc50514c9937bcf662

tools/tdm_test_server.c

index 0c30519a2b68dfef2f4edf76c89066880790e868..b42a0fb284682221382b94d6e6eb13ccbe20eb67 100644 (file)
@@ -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;