#include "e.h"
static Eina_Bool
-_hwc_available_get(E_Client *ec)
+_e_output_hwc_ec_check(E_Client *ec)
{
E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
E_Output *eout;
}
static void
-_hwc_prepare_init(E_Output_Hwc *output_hwc)
+_e_output_hwc_planes_prepare_init(E_Output_Hwc *output_hwc)
{
const Eina_List *ep_l = NULL, *l ;
E_Plane *ep = NULL;
}
static int
-_hwc_prepare_cursor(E_Output *eout, int n_cur, Eina_List *hwc_clist)
+_e_output_hwc_planes_prepare_cursor(E_Output *eout, int n_cur, Eina_List *hwc_clist)
{
// policy for cursor layer
const Eina_List *ep_l = NULL, *l ;
}
static Eina_Bool
-_hwc_prepare(E_Output_Hwc *output_hwc, int n_vis, int n_skip, Eina_List *hwc_clist)
+_e_output_hwc_planes_prepare_plane(E_Output_Hwc *output_hwc, int n_vis, int n_skip, Eina_List *hwc_clist)
{
const Eina_List *ep_l = NULL, *l ;
Eina_List *hwc_ly = NULL;
}
static void
-_hwc_cancel(E_Output_Hwc *output_hwc)
+_e_output_hwc_planes_cancel(E_Output_Hwc *output_hwc)
{
Eina_List *l ;
E_Plane *ep;
}
static Eina_Bool
-_hwc_reserved_clean(E_Output_Hwc *output_hwc)
+_e_output_hwc_planes_reserved_clean(E_Output_Hwc *output_hwc)
{
Eina_List *l;
E_Plane *ep;
}
static void
-_hwc_plane_unset(E_Plane *ep)
+_e_output_hwc_planes_unset(E_Plane *ep)
{
if (e_plane_is_reserved(ep))
e_plane_reserved_set(ep, 0);
}
static Eina_Bool
-_hwc_plane_change_ec(E_Plane *ep, E_Client *new_ec)
+_e_output_hwc_planes_change_ec(E_Plane *ep, E_Client *new_ec)
{
if (!e_plane_ec_set(ep, new_ec))
{
}
static void
-_e_output_hwc_changed(E_Output_Hwc *output_hwc)
+_e_output_hwc_planes_changed(E_Output_Hwc *output_hwc)
{
Eina_Bool ret = EINA_FALSE;
E_Plane *ep = NULL;
if (!assign_success)
{
//unset planes from 'assign_success' became EINA_FALSE to the fb target
- _hwc_plane_unset(ep);
+ _e_output_hwc_planes_unset(ep);
continue;
}
if (ep->ec != ep->prepare_ec)
{
- assign_success = _hwc_plane_change_ec(ep, ep->prepare_ec);
+ assign_success = _e_output_hwc_planes_change_ec(ep, ep->prepare_ec);
ret = EINA_TRUE;
}
}
static Eina_Bool
-_e_output_hwc_prepare(E_Output_Hwc *output_hwc, E_Zone *zone)
+_e_output_hwc_planes_prepare(E_Output_Hwc *output_hwc, E_Zone *zone)
{
Eina_List *vl;
Eina_Bool ret = EINA_FALSE;
goto done;
// if ec has invalid buffer or scaled( transformed ) or forced composite(never_hwc)
- if (!_hwc_available_get(ec))
+ if (!_e_output_hwc_ec_check(ec))
{
if (!n_ec) goto done;
break;
if ((n_vis < 1) || (n_ec < 1))
goto done;
- _hwc_prepare_init(output_hwc);
+ _e_output_hwc_planes_prepare_init(output_hwc);
if (n_cur >= 1)
- n_skip = _hwc_prepare_cursor(output, n_cur, hwc_ok_clist);
+ n_skip = _e_output_hwc_planes_prepare_cursor(output, n_cur, hwc_ok_clist);
if (n_skip > 0) ret = EINA_TRUE;
- ret |= _hwc_prepare(output_hwc, n_vis, n_skip, hwc_ok_clist);
+ ret |= _e_output_hwc_planes_prepare_plane(output_hwc, n_vis, n_skip, hwc_ok_clist);
done:
eina_list_free(hwc_ok_clist);
}
static Eina_Bool
-_e_output_hwc_usable(E_Output_Hwc *output_hwc)
+_e_output_hwc_planes_usable(E_Output_Hwc *output_hwc)
{
E_Output *eout = output_hwc->output;
E_Comp_Wl_Buffer *buffer = NULL;
EINA_SAFETY_ON_NULL_RETURN_VAL(zone, EINA_FALSE);
// check whether to use hwc and prepare the core assignment policy
- if (!_e_output_hwc_prepare(output_hwc, zone)) return EINA_FALSE;
+ if (!_e_output_hwc_planes_prepare(output_hwc, zone)) return EINA_FALSE;
// extra policy can replace core policy
e_comp_hook_call(E_COMP_HOOK_PREPARE_PLANE, NULL);
}
static Eina_Bool
-_e_output_hwc_can_hwcompose(E_Output *eout)
+_e_output_hwc_planes_can_hwcompose(E_Output *eout)
{
const Eina_List *ep_l = NULL, *l;
E_Plane *ep = NULL, *ep_fb = NULL;
}
static void
-_e_output_hwc_begin(E_Output_Hwc *output_hwc)
+_e_output_hwc_planes_begin(E_Output_Hwc *output_hwc)
{
const Eina_List *ep_l = NULL, *l;
E_Output *eout = output_hwc->output;
if (e_comp->nocomp_override > 0) return;
- if (_e_output_hwc_can_hwcompose(eout))
+ if (_e_output_hwc_planes_can_hwcompose(eout))
{
ep_l = e_output_planes_get(eout);
}
static E_Output_Hwc_Mode
-_e_output_hwc_current_hwc_mode_check(E_Output_Hwc *output_hwc)
+_e_output_hwc_mode_get(E_Output_Hwc *output_hwc)
{
const Eina_List *ll = NULL, *l;
E_Output *output = output_hwc->output;
EINA_SAFETY_ON_NULL_RETURN(output_hwc);
/* clean the reserved planes(clean the candidate ecs) */
- _hwc_reserved_clean(output_hwc);
+ _e_output_hwc_planes_reserved_clean(output_hwc);
if (!output_hwc->hwc_mode) return;
/* set null to the e_planes */
- _hwc_cancel(output_hwc);
+ _e_output_hwc_planes_cancel(output_hwc);
/* check the current mode */
- new_mode = _e_output_hwc_current_hwc_mode_check(output_hwc);
+ new_mode = _e_output_hwc_mode_get(output_hwc);
if (output_hwc->hwc_mode == E_OUTPUT_HWC_MODE_FULL &&
new_mode != E_OUTPUT_HWC_MODE_FULL)
return;
}
- if (!_e_output_hwc_usable(output_hwc))
+ if (!_e_output_hwc_planes_usable(output_hwc))
{
e_output_hwc_end(output_hwc, __FUNCTION__);
return;
}
if (output_hwc->hwc_mode == E_OUTPUT_HWC_MODE_NO)
- _e_output_hwc_begin(output_hwc);
+ _e_output_hwc_planes_begin(output_hwc);
else
- _e_output_hwc_changed(output_hwc);
+ _e_output_hwc_planes_changed(output_hwc);
}
EINTERN E_Output_Hwc_Mode