e_hwc_windows: execute commit data release after pp output commit done 19/218519/3 submit/tizen/20191127.085650
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 25 Nov 2019 05:52:00 +0000 (14:52 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 27 Nov 2019 08:54:47 +0000 (08:54 +0000)
Change-Id: I0b504669fa9d381d757a55dd83218938aaa1b28a
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_hwc_windows.c

index a04fcab..2ed33c6 100644 (file)
@@ -1323,6 +1323,10 @@ _e_hwc_windows_pp_output_commit_handler(tdm_output *toutput, unsigned int sequen
 
    hwc->pp_output_commit = EINA_FALSE;
 
+    _e_hwc_windows_commit_data_release(hwc, sequence, tv_sec, tv_usec);
+   hwc->wait_commit = EINA_FALSE;
+   hwc->pp_commit = EINA_FALSE;
+
    /* layer already resetted */
    if (hwc->pp_output_commit_data)
      {
@@ -1530,15 +1534,6 @@ _e_hwc_windows_pp_commit_handler(tdm_pp *pp, tbm_surface_h tsurface_src, tbm_sur
 
    hwc->pp_hwc_window_list = eina_list_remove(hwc->pp_hwc_window_list, hwc_window);
 
-   if (hwc_window->ec) e_pixmap_image_clear(hwc_window->ec->pixmap, 1);
-   e_hwc_window_commit_data_release(hwc_window);
-
-   if (eina_list_count(hwc->pending_pp_hwc_window_list) == 0)
-     {
-        hwc->wait_commit = EINA_FALSE;
-        hwc->pp_commit = EINA_FALSE;
-     }
-
    EHWSTRACE("!!!!!!!! HWC PP Commit Handler !!!!!!!!", NULL, hwc);
    EHWSTRACE("   tsurface src(%p) dst(%p)", NULL, hwc, tsurface_src, tsurface_dst);
 
@@ -2437,7 +2432,7 @@ _e_hwc_windows_evaluate(E_Hwc *hwc)
         if (e_hwc_window_is_target(hwc_window)) continue;
 
         e_hwc_window_constraints_update(hwc_window);
-        if (hwc->pp_hwc_window)
+        if (hwc->pp_hwc_window == hwc_window)
           e_hwc_window_pp_rendered_window_update(hwc_window);
         else
           e_hwc_window_rendered_window_update(hwc_window);