hwc: remove the unused code 99/170099/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 12 Feb 2018 08:03:55 +0000 (17:03 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 13 Feb 2018 08:59:51 +0000 (17:59 +0900)
Change-Id: I0c36c524c434dfb876edf2765e43351776d05f4d

src/bin/e_hwc_window.c [changed mode: 0644->0755]
src/bin/e_output_hwc_windows.c

old mode 100644 (file)
new mode 100755 (executable)
index 3f79e3b..b10a894
@@ -1311,44 +1311,6 @@ e_hwc_window_commit_data_aquire(E_Hwc_Window *hwc_window)
 
    if (hwc_window->update_exist == EINA_FALSE) return EINA_FALSE;
 
-#if 0
-   if (!e_hwc_window_is_on_hw_overlay(hwc_window))
-     {
-        hwc_window->update_exist = EINA_FALSE;
-
-        /* right after an hwc_window's type has been changed from DEVICE to CLIENT
-         * we have to wait till hwc_window's buffer being composited to target_buffer
-         * and this target_buffer gets scheduled and only after this we can issue
-         * a 'fake commit_data' request to allow tdm_commit() to be called to unset
-         * an underlying hw overlay;
-         * target_wnd's hwc can't ever be at target_wnd :), so we pass it immediately */
-        if (e_hwc_window_displaying_surface_get(hwc_window) &&
-            !_e_hwc_window_is_device_to_client_transition(hwc_window))
-          {
-             commit_data = E_NEW(E_Hwc_Window_Commit_Data, 1);
-             EINA_SAFETY_ON_NULL_RETURN_VAL(commit_data, EINA_FALSE);
-
-             hwc_window->commit_data = commit_data;
-             hwc_window->is_device_to_client_transition = EINA_FALSE;
-
-             return EINA_TRUE;
-          }
-
-        return EINA_FALSE;
-     }
-
-   /* If there are not updates and there is not displaying surface, it means the
-    * hwc_window's composition type just became TDM_COMPOSITION_DEVICE. Buffer
-    * for this hwc_window was set in the previous e_hwc_window_buffer_fetch but ref for
-    * buffer didn't happen because hwc_window had TDM_COMPOSITION_CLIENT type.
-    * So e20 needs to make ref for the current buffer which is set on the hwc_window.
-    */
-   if (!hwc_window->update_exist && e_hwc_window_displaying_surface_get(hwc_window))
-     {
-        return EINA_FALSE;
-     }
-#endif
-
    commit_data = E_NEW(E_Hwc_Window_Commit_Data, 1);
    EINA_SAFETY_ON_NULL_RETURN_VAL(commit_data, EINA_FALSE);
 
index 012924a7183a61ac7663809f08c228ea7d1e05cb..9cf37980a05f9790182e171b57b364d2b16646b0 100644 (file)
@@ -179,8 +179,6 @@ _e_output_hwc_windows_aligned_width_get(tbm_surface_h tsurface)
    return aligned_width;
 }
 
-
-
 static void
 _e_output_hwc_windows_commit_handler(tdm_output *toutput, unsigned int sequence,
                                   unsigned int tv_sec, unsigned int tv_usec,