The tdm_hwc has to know the buffer change of the tdm_hwc_window all the time.
Change-Id: I559fca229d2e06d3a8c3ab5e92318fb5d1a247f9
}
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;
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;
/* 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
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);
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
_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);