change the tdm_hwc_window_get_preparations to the tdm_hwc_window_get_constraints
change the preparation to the constraint
Change-Id: I854b013a3845dadafcd47b5372caf58c4735745c
if (e_hwc_policy_get(output->hwc) == E_HWC_POLICY_PLANES)
return;
- e_hwc_window_preparation_set(ec->hwc_window, TDM_PREPARATION_NONE);
+ e_hwc_window_constraints_set(ec->hwc_window, TDM_CONSTRAINT_NONE);
if (!ec->hwc_window) return;
}
EINTERN Eina_Bool
-e_hwc_window_preparation_set(E_Hwc_Window *hwc_window, int preparation_types)
+e_hwc_window_constraints_set(E_Hwc_Window *hwc_window, int constraints)
{
E_Hwc_Window_Queue *queue = NULL;
EINA_SAFETY_ON_FALSE_RETURN_VAL(hwc_window, EINA_FALSE);
- if (hwc_window->preparation_types == preparation_types) return EINA_TRUE;
+ if (hwc_window->constraints == constraints) return EINA_TRUE;
- if (preparation_types & TDM_PREPARATION_BUFFER_QUEUE)
+ if (constraints & TDM_CONSTRAINT_BUFFER_QUEUE)
{
if (!hwc_window->queue)
{
}
}
- hwc_window->preparation_types = preparation_types;
+ hwc_window->constraints = constraints;
return EINA_TRUE;
}
tbm_surface_h tsurface;
} cursor;
- int preparation_types;
+ int constraints;
E_Hwc_Window_Queue *queue;
struct wl_listener queue_destroy_listener;
EINTERN Eina_Bool e_hwc_window_accepted_state_set(E_Hwc_Window *hwc_window, E_Hwc_Window_State state);
EINTERN E_Hwc_Window_State e_hwc_window_accepted_state_get(E_Hwc_Window *hwc_window);
-EINTERN Eina_Bool e_hwc_window_preparation_set(E_Hwc_Window *hwc_window, int preparation_types);
+EINTERN Eina_Bool e_hwc_window_constraints_set(E_Hwc_Window *hwc_window, int constraints);
EINTERN void e_hwc_window_render_list_add(E_Hwc_Window *hwc_window);
EINTERN Eina_Bool e_hwc_window_is_on_target_window(E_Hwc_Window *hwc_window);
}
static void
-_e_hwc_windows_preparation_update(E_Hwc *hwc)
+_e_hwc_windows_constraints_update(E_Hwc *hwc)
{
tdm_error terror;
E_Hwc_Window *hwc_window;
const Eina_List *l;
- int preparation_types;
+ int constraints;
EINA_LIST_FOREACH(hwc->hwc_windows, l, hwc_window)
{
if (hwc_window->is_target) continue;
if (!hwc_window->thwc_window) continue;
- terror = tdm_hwc_window_get_preparation_types(hwc_window->thwc_window,
- &preparation_types);
+ terror = tdm_hwc_window_get_constraints(hwc_window->thwc_window, &constraints);
if (terror != TDM_ERROR_NONE) continue;
- e_hwc_window_preparation_set(hwc_window, preparation_types);
+ e_hwc_window_constraints_set(hwc_window, constraints);
}
return;
e_hwc_window_state_set(hwc_window, state);
}
- _e_hwc_windows_preparation_update(hwc);
+ _e_hwc_windows_constraints_update(hwc);
_e_hwc_windows_render_target_update(hwc);
#if DBG_EVALUATE