ecore_evas_wl: add damage only when rendering 86/163286/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 8 Dec 2017 08:23:16 +0000 (17:23 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 8 Dec 2017 08:24:37 +0000 (17:24 +0900)
Change-Id: I464887cc43a0053b1d3c89f4a0fd6224cd517c35

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index 5a97cc6..fbaf547 100755 (executable)
@@ -517,10 +517,12 @@ _ecore_evas_wl_common_cb_output_transform(void *data, int type EINA_UNUSED, void
    if (output != ev->output) return ECORE_CALLBACK_PASS_ON;
 
    changed = _ecore_evas_wl_common_rotate_update(ee);
-   evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
 
    if (!ee->manual_render && changed)
-     _ecore_evas_wl_common_render(ee);
+     {
+        evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
+        _ecore_evas_wl_common_render(ee);
+     }
 
    return ECORE_CALLBACK_PASS_ON;
 }
@@ -534,10 +536,12 @@ _ecore_evas_wl_common_cb_ignore_output_transform(void *data, int type EINA_UNUSE
    if (!ee) return ECORE_CALLBACK_PASS_ON;
 
    changed = _ecore_evas_wl_common_rotate_update(ee);
-   evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
 
    if (!ee->manual_render && changed)
-     _ecore_evas_wl_common_render(ee);
+     {
+        evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
+        _ecore_evas_wl_common_render(ee);
+     }
 
    return ECORE_CALLBACK_PASS_ON;
 }