e_hwc_windows: hwc window always has to set the buffer to the tdm hwc. 40/214640/1 accepted/tizen/unified/20190925.220423 submit/tizen/20190925.040059
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 25 Sep 2019 01:52:19 +0000 (10:52 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 25 Sep 2019 01:52:19 +0000 (10:52 +0900)
The tdm_hwc has to know the buffer change of the tdm_hwc_window all the time.

Change-Id: I559fca229d2e06d3a8c3ab5e92318fb5d1a247f9

src/bin/e_hwc_window.c
src/bin/e_hwc_window.h
src/bin/e_hwc_windows.c

index 5f1f53eec14b1bd22e72495298afd2b9cd4ad221..a32ce30e961f6b63ec97bfddda20dad7f7a3d166 100644 (file)
@@ -1182,7 +1182,7 @@ e_hwc_window_info_update(E_Hwc_Window *hwc_window)
 }
 
 EINTERN Eina_Bool
-e_hwc_window_buffer_fetch(E_Hwc_Window *hwc_window, Eina_Bool tdm_set)
+e_hwc_window_buffer_fetch(E_Hwc_Window *hwc_window)
 {
    tbm_surface_h tsurface = NULL;
    tdm_hwc_window *thwc_window = NULL;
@@ -1270,8 +1270,7 @@ e_hwc_window_buffer_fetch(E_Hwc_Window *hwc_window, Eina_Bool tdm_set)
    else
      _e_hwc_window_buffer_set(&hwc_window->buffer, NULL, NULL);
 
-   if (tdm_set)
-     error = tdm_hwc_window_set_buffer(thwc_window, hwc_window->buffer.tsurface);
+   error = tdm_hwc_window_set_buffer(thwc_window, hwc_window->buffer.tsurface);
    EINA_SAFETY_ON_TRUE_RETURN_VAL(error != TDM_ERROR_NONE, EINA_FALSE);
 
    return EINA_TRUE;
@@ -1869,7 +1868,7 @@ _e_hwc_window_client_recover(E_Hwc_Window *hwc_window)
    /* force update */
    e_comp_wl_surface_attach(ec, recover_buffer);
 
-   e_hwc_window_buffer_fetch(hwc_window, EINA_TRUE);
+   e_hwc_window_buffer_fetch(hwc_window);
 }
 
 static Eina_Bool
index 496d422e83e8f5505a68688c5b35b7bd41fbc862..98ac151545121fa3d50529a5b3742f4c1eaf3f11 100644 (file)
@@ -180,7 +180,7 @@ EINTERN Eina_Bool               e_hwc_window_zpos_set(E_Hwc_Window *hwc_window,
 EINTERN int                     e_hwc_window_zpos_get(E_Hwc_Window *hwc_window);
 EINTERN Eina_Bool               e_hwc_window_composition_update(E_Hwc_Window *hwc_window);
 EINTERN Eina_Bool               e_hwc_window_info_update(E_Hwc_Window *hwc_window);
-EINTERN Eina_Bool               e_hwc_window_buffer_fetch(E_Hwc_Window *hwc_window, Eina_Bool tdm_set);
+EINTERN Eina_Bool               e_hwc_window_buffer_fetch(E_Hwc_Window *hwc_window);
 EINTERN Eina_Bool               e_hwc_window_prop_update(E_Hwc_Window *hwc_window);
 EINTERN Eina_Bool               e_hwc_window_is_target(E_Hwc_Window *hwc_window);
 EINTERN Eina_Bool               e_hwc_window_is_video(E_Hwc_Window *hwc_window);
index 2290ba4cb027b8853966e5139b1f8a5caa17e2ea..99fdb04c5793bf0c2bfa440d8083af94958cf998 100644 (file)
@@ -2208,10 +2208,7 @@ _e_hwc_windows_changes_update(E_Hwc *hwc)
         if (e_hwc_window_is_target(hwc_window)) continue;
 
         /* fetch the window buffer */
-        if (hwc->pp_set)
-          ret = e_hwc_window_buffer_fetch(hwc_window, EINA_TRUE);
-        else
-          ret = e_hwc_window_buffer_fetch(hwc_window, EINA_TRUE);
+        ret = e_hwc_window_buffer_fetch(hwc_window);
         if (ret)
           update_changes = EINA_TRUE;
         else
@@ -2663,7 +2660,7 @@ static Eina_Bool
 _e_hwc_windows_presentation_changes_update(E_Hwc *hwc)
 {
    /* set buffer */
-   if (!e_hwc_window_buffer_fetch(hwc->presentation_hwc_window, EINA_TRUE))
+   if (!e_hwc_window_buffer_fetch(hwc->presentation_hwc_window))
      return EINA_FALSE;
 
    e_hwc_window_zpos_set(hwc->presentation_hwc_window, 0);