From 0e19d3971a9680e7cf542a0df94e364fe7ff1ec1 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Wed, 25 Sep 2019 10:52:19 +0900 Subject: [PATCH] e_hwc_windows: hwc window always has to set the buffer to the tdm hwc. 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 | 7 +++---- src/bin/e_hwc_window.h | 2 +- src/bin/e_hwc_windows.c | 7 ++----- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/bin/e_hwc_window.c b/src/bin/e_hwc_window.c index 5f1f53eec1..a32ce30e96 100644 --- a/src/bin/e_hwc_window.c +++ b/src/bin/e_hwc_window.c @@ -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 diff --git a/src/bin/e_hwc_window.h b/src/bin/e_hwc_window.h index 496d422e83..98ac151545 100644 --- a/src/bin/e_hwc_window.h +++ b/src/bin/e_hwc_window.h @@ -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); diff --git a/src/bin/e_hwc_windows.c b/src/bin/e_hwc_windows.c index 2290ba4cb0..99fdb04c57 100644 --- a/src/bin/e_hwc_windows.c +++ b/src/bin/e_hwc_windows.c @@ -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); -- 2.34.1