e_output_hwc: add the e_output_hwc_planes_ prefix to the function name. 91/161791/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 27 Nov 2017 09:21:46 +0000 (18:21 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 27 Nov 2017 09:21:46 +0000 (18:21 +0900)
Change-Id: Ie7262b2ca6ee565c76f7f48e9ee86402f5ebe395

src/bin/e_output_hwc.c

index 8e7c98a..5c9e9ee 100644 (file)
@@ -1,7 +1,7 @@
 #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;
@@ -64,7 +64,7 @@ _hwc_available_get(E_Client *ec)
 }
 
 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;
@@ -85,7 +85,7 @@ _hwc_prepare_init(E_Output_Hwc *output_hwc)
 }
 
 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 ;
@@ -140,7 +140,7 @@ _hwc_prepare_cursor(E_Output *eout, int n_cur, Eina_List *hwc_clist)
 }
 
 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;
@@ -231,7 +231,7 @@ _hwc_prepare(E_Output_Hwc *output_hwc, int n_vis, int n_skip, Eina_List *hwc_cli
 }
 
 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;
@@ -250,7 +250,7 @@ _hwc_cancel(E_Output_Hwc *output_hwc)
 }
 
 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;
@@ -271,7 +271,7 @@ _hwc_reserved_clean(E_Output_Hwc *output_hwc)
 }
 
 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);
@@ -283,7 +283,7 @@ _hwc_plane_unset(E_Plane *ep)
 }
 
 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))
      {
@@ -305,7 +305,7 @@ _hwc_plane_change_ec(E_Plane *ep, E_Client *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;
@@ -321,7 +321,7 @@ _e_output_hwc_changed(E_Output_Hwc *output_hwc)
         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;
           }
 
@@ -334,7 +334,7 @@ _e_output_hwc_changed(E_Output_Hwc *output_hwc)
 
         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;
           }
 
@@ -377,7 +377,7 @@ _e_output_hwc_changed(E_Output_Hwc *output_hwc)
 }
 
 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;
@@ -401,7 +401,7 @@ _e_output_hwc_prepare(E_Output_Hwc *output_hwc, E_Zone *zone)
            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;
@@ -417,14 +417,14 @@ _e_output_hwc_prepare(E_Output_Hwc *output_hwc, E_Zone *zone)
    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);
@@ -434,7 +434,7 @@ done:
 }
 
 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;
@@ -448,7 +448,7 @@ _e_output_hwc_usable(E_Output_Hwc *output_hwc)
    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);
@@ -497,7 +497,7 @@ _e_output_hwc_usable(E_Output_Hwc *output_hwc)
 }
 
 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;
@@ -526,7 +526,7 @@ _e_output_hwc_can_hwcompose(E_Output *eout)
 }
 
 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;
@@ -536,7 +536,7 @@ _e_output_hwc_begin(E_Output_Hwc *output_hwc)
 
    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);
 
@@ -574,7 +574,7 @@ _e_output_hwc_begin(E_Output_Hwc *output_hwc)
 }
 
 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;
@@ -600,15 +600,15 @@ e_output_hwc_end(E_Output_Hwc *output_hwc, const char *location)
    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)
@@ -670,16 +670,16 @@ e_output_hwc_apply(E_Output_Hwc *output_hwc)
         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