e_hwc_window: change the tdm_hwc_window symbol and some name 91/190291/3
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 1 Oct 2018 00:23:09 +0000 (09:23 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 1 Oct 2018 02:09:37 +0000 (02:09 +0000)
change the tdm_hwc_window_get_preparations to the tdm_hwc_window_get_constraints
change the preparation to the constraint

Change-Id: I854b013a3845dadafcd47b5372caf58c4735745c

src/bin/e_hwc_window.c
src/bin/e_hwc_window.h
src/bin/e_hwc_windows.c

index 30715eebec97a9c51ebce18d21465e465b1265f6..64ebce022625d067b6ea910c4a90897c95a91ca5 100644 (file)
@@ -517,7 +517,7 @@ _e_hwc_window_client_cb_del(void *data EINA_UNUSED, E_Client *ec)
    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;
 
@@ -1758,15 +1758,15 @@ e_hwc_window_is_on_target_window(E_Hwc_Window *hwc_window)
 }
 
 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)
            {
@@ -1793,7 +1793,7 @@ e_hwc_window_preparation_set(E_Hwc_Window *hwc_window, int preparation_types)
            }
      }
 
-   hwc_window->preparation_types = preparation_types;
+   hwc_window->constraints = constraints;
 
    return EINA_TRUE;
 }
index 66fe91504aa758204bad64edebeab972a73e4a97..21decef1f141c022d641858d6c3c3cef920d3ae8 100644 (file)
@@ -105,7 +105,7 @@ struct _E_Hwc_Window
       tbm_surface_h               tsurface;
    } cursor;
 
-   int                            preparation_types;
+   int                            constraints;
 
    E_Hwc_Window_Queue            *queue;
    struct wl_listener             queue_destroy_listener;
@@ -171,7 +171,7 @@ EINTERN E_Hwc_Window_State e_hwc_window_state_get(E_Hwc_Window *hwc_window);
 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);
index 8fb58520b3a3496759a0c6746d08c21dd324cbca..774ec5537f267d9f2e0baaeaf061a1305ba69d01 100644 (file)
@@ -1027,23 +1027,22 @@ _e_hwc_windows_transition_check(E_Hwc *hwc)
 }
 
 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;
@@ -1136,7 +1135,7 @@ _e_hwc_windows_accept(E_Hwc *hwc, uint32_t num_changes)
         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