Revert "ecore_evas_wl: do set_buffer_transform in gl side" 58/139858/1 accepted/tizen/unified/20170721.201732 submit/tizen/20170721.005824
authorBoram Park <boram1288.park@samsung.com>
Fri, 21 Jul 2017 01:00:13 +0000 (10:00 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 21 Jul 2017 01:00:32 +0000 (10:00 +0900)
This reverts commit 787f71a5a41378a2f63904df61ae5b6f6b148e1e.

Change-Id: Ib37923559fa70865f48ffd08a91e584fc39dbfd7

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h
src/modules/evas/engines/wayland_egl/evas_wl_main.c

index 1e661b1..50e3cc4 100755 (executable)
@@ -104,8 +104,7 @@ _ecore_evas_wl_common_engine_info_rotation_set(Ecore_Evas *ee, Evas_Engine_Info
 #ifdef BUILD_ECORE_EVAS_WAYLAND_EGL
         Evas_Engine_Info_Wayland_Egl *einfo = (Evas_Engine_Info_Wayland_Egl *)info;
         einfo->info.rotation = (ee->rotation + wdata->output_rotation) % 360;
-        /* the buffer transform information will be set in side of gl when rendering finish */
-        einfo->window_rotation = ee->rotation;
+        ecore_wl_window_buffer_transform_set(wdata->win, wdata->output_rotation / 90);
         WRN("evas engine rotate: %d", einfo->info.rotation);
 #endif
      }
index 6767e1c..588e636 100644 (file)
@@ -50,8 +50,6 @@ struct _Evas_Engine_Info_Wayland_Egl
    int           depth_bits;
    int           stencil_bits;
    int           msaa_bits;
-
-   int window_rotation;
 };
 
 #endif
index e9a9687..ec2c46a 100644 (file)
@@ -561,15 +561,6 @@ eng_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth EIN
                dy = ah - h;
           }
 
-        /* buffer_transform: screen rotation + window rotation
-         * window_transform: window rotation only
-         * We have to let the display server know the window rotation value
-         * because the display server needs to calcuate the screen rotation value
-         * from buffer_transform value.
-         */
-        wl_egl_window_set_buffer_transform(ob->win, ob->info->info.rotation / 90);
-        wl_egl_window_set_window_transform(ob->win, ob->info->window_rotation / 90);
-
         if ((ob->info->info.rotation == 90) || (ob->info->info.rotation == 270))
           wl_egl_window_resize(ob->win, h, w, dx, dy);
         else