video: Rename functions to commit buffer properly. 18/204518/1
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 19 Apr 2019 08:42:33 +0000 (17:42 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 24 Apr 2019 06:34:22 +0000 (15:34 +0900)
Change-Id: I581282f7218809c30b799a0529101d28010dc1ed

src/bin/video/iface/e_video_hwc.c
src/bin/video/iface/e_video_hwc.h
src/bin/video/iface/e_video_hwc_planes.c
src/bin/video/iface/e_video_hwc_windows.c

index 84c5e6a250cbb4b3e2950215c506aa0ca7ba7c7a..682af22181bf344fbff0acc646dfc32d2bcba762 100644 (file)
@@ -155,9 +155,9 @@ _e_video_hwc_buffer_commit(E_Video_Hwc *evh, E_Comp_Wl_Video_Buf *vbuf)
      goto no_commit;
 
    if (evh->hwc_policy == E_HWC_POLICY_PLANES)
-     res = e_video_hwc_planes_frame_buffer_show(evh, vbuf);
+     res = e_video_hwc_planes_buffer_commit(evh, vbuf);
    else
-     res = e_video_hwc_windows_frame_buffer_show(evh, vbuf);
+     res = e_video_hwc_windows_buffer_commit(evh, vbuf);
 
    if (!res)
      goto no_commit;
@@ -233,9 +233,9 @@ _e_video_hwc_input_buffer_cb_free(E_Comp_Wl_Video_Buf *vbuf, void *data)
    if (need_hide)
      {
         if (evh->hwc_policy == E_HWC_POLICY_PLANES)
-          e_video_hwc_planes_frame_buffer_show(evh, NULL);
+          e_video_hwc_planes_buffer_commit(evh, NULL);
         else
-          e_video_hwc_windows_frame_buffer_show(evh, NULL);
+          e_video_hwc_windows_buffer_commit(evh, NULL);
      }
 }
 
@@ -367,9 +367,9 @@ _e_video_hwc_hide(E_Video_Hwc *evh)
    if (evh->current_fb || evh->committed_list)
      {
         if (evh->hwc_policy == E_HWC_POLICY_PLANES)
-          e_video_hwc_planes_frame_buffer_show(evh, NULL);
+          e_video_hwc_planes_buffer_commit(evh, NULL);
         else
-          e_video_hwc_windows_frame_buffer_show(evh, NULL);
+          e_video_hwc_windows_buffer_commit(evh, NULL);
      }
 
    if (evh->current_fb)
index dadeafb726401b8c03479475d323bcac7002a3d8..1024db71b25e74939aef531cfbb98c01fd599320 100644 (file)
@@ -80,7 +80,7 @@ struct _E_Video_Hwc
 
 EINTERN E_Video_Hwc *e_video_hwc_planes_create(void);
 EINTERN Eina_Bool    e_video_hwc_planes_init(E_Video_Hwc *evh);
-EINTERN Eina_Bool    e_video_hwc_planes_frame_buffer_show(E_Video_Hwc *evh, E_Comp_Wl_Video_Buf *vbuf);
+EINTERN Eina_Bool    e_video_hwc_planes_buffer_commit(E_Video_Hwc *evh, E_Comp_Wl_Video_Buf *vbuf);
 EINTERN Eina_Bool    e_video_hwc_planes_check_if_pp_needed(E_Video_Hwc *evh);
 EINTERN Eina_Bool    e_video_hwc_planes_properties_commit(E_Video_Hwc *evh);
 EINTERN Eina_Bool    e_video_hwc_planes_commit_available_check(E_Video_Hwc *evh);
@@ -88,7 +88,7 @@ EINTERN tbm_surface_h   e_video_hwc_planes_displaying_buffer_get(E_Video_Hwc *ev
 
 EINTERN E_Video_Hwc *e_video_hwc_windows_create(void);
 EINTERN Eina_Bool    e_video_hwc_windows_init(E_Video_Hwc *evh);
-EINTERN Eina_Bool    e_video_hwc_windows_frame_buffer_show(E_Video_Hwc *evh, E_Comp_Wl_Video_Buf *vbuf);
+EINTERN Eina_Bool    e_video_hwc_windows_buffer_commit(E_Video_Hwc *evh, E_Comp_Wl_Video_Buf *vbuf);
 EINTERN Eina_Bool    e_video_hwc_windows_check_if_pp_needed(E_Video_Hwc *evh);
 EINTERN Eina_Bool    e_video_hwc_windows_commit_available_check(E_Video_Hwc *evh);
 EINTERN tbm_surface_h   e_video_hwc_windows_displaying_buffer_get(E_Video_Hwc *evh);
index f0e556f2dc298798732f8667a1fb545cdbc974e5..c634b70c30860691aaac89e5b6f2f52f52b41e66 100644 (file)
@@ -44,7 +44,7 @@ static Eina_List *video_layers = NULL;
 
 static Eina_Bool _e_video_hwc_planes_set(E_Video_Hwc_Planes *evhp);
 static void _e_video_hwc_planes_destroy(E_Video_Hwc_Planes *evhp);
-static Eina_Bool _e_video_hwc_planes_frame_buffer_show(E_Video_Hwc_Planes *evhp, E_Comp_Wl_Video_Buf *vbuf);
+static Eina_Bool _e_video_hwc_planes_buffer_commit(E_Video_Hwc_Planes *evhp, E_Comp_Wl_Video_Buf *vbuf);
 static void _e_video_hwc_planes_cb_eplane_video_set_hook(void *data, E_Plane *plane);
 
 static tdm_layer* _e_video_hwc_planes_video_tdm_layer_get(tdm_output *output);
@@ -330,7 +330,7 @@ _e_video_hwc_planes_cb_eplane_video_set_hook(void *data, E_Plane *plane)
 }
 
 static Eina_Bool
-_e_video_hwc_planes_frame_buffer_show(E_Video_Hwc_Planes *evhp, E_Comp_Wl_Video_Buf *vbuf)
+_e_video_hwc_planes_buffer_commit(E_Video_Hwc_Planes *evhp, E_Comp_Wl_Video_Buf *vbuf)
 {
    E_Client_Video_Info info, old_info;
    tdm_error ret;
@@ -468,7 +468,7 @@ _e_video_hwc_planes_cb_evas_hide(void *data, Evas *e EINA_UNUSED, Evas_Object *o
      }
 
    VIN("evas hide", evhp->base.ec);
-   _e_video_hwc_planes_frame_buffer_show(evhp, NULL);
+   _e_video_hwc_planes_buffer_commit(evhp, NULL);
 }
 
 static Eina_Bool
@@ -1104,12 +1104,12 @@ e_video_hwc_planes_displaying_buffer_get(E_Video_Hwc *evh)
 }
 
 EINTERN Eina_Bool
-e_video_hwc_planes_frame_buffer_show(E_Video_Hwc *evh, E_Comp_Wl_Video_Buf *vbuf)
+e_video_hwc_planes_buffer_commit(E_Video_Hwc *evh, E_Comp_Wl_Video_Buf *vbuf)
 {
    E_Video_Hwc_Planes *evhp;
 
    evhp = (E_Video_Hwc_Planes *)evh;
-   return _e_video_hwc_planes_frame_buffer_show(evhp, vbuf);
+   return _e_video_hwc_planes_buffer_commit(evhp, vbuf);
 }
 
 EINTERN Eina_Bool
index a08da62e2d1f0e8ae651fb555792fe9f2e7a5ad0..1088f5eab5cfd66eed451eac76f813942d17402b 100644 (file)
@@ -474,7 +474,7 @@ e_video_hwc_windows_displaying_buffer_get(E_Video_Hwc *evh)
 }
 
 EINTERN Eina_Bool
-e_video_hwc_windows_frame_buffer_show(E_Video_Hwc *evh, E_Comp_Wl_Video_Buf *vbuf)
+e_video_hwc_windows_buffer_commit(E_Video_Hwc *evh, E_Comp_Wl_Video_Buf *vbuf)
 {
    E_Video_Hwc_Windows *evhw;