Added following codes instead of removed one.
e_video_hwc_vbuf_find()
e_video_hwc_vbuf_find_with_comp_buffer()
Change-Id: I16d540f78c3078bace41063234127c0b21d1d228
E_Video_Comp_Iface *backend;
};
+EINTERN E_Comp_Wl_Video_Buf *
+e_video_hwc_vbuf_find(Eina_List *list, tbm_surface_h buffer)
+{
+ E_Comp_Wl_Video_Buf *vbuf;
+ Eina_List *l = NULL;
+
+ EINA_LIST_FOREACH(list, l, vbuf)
+ {
+ if (vbuf->tbm_surface == buffer)
+ return vbuf;
+ }
+
+ return NULL;
+}
+
+EINTERN E_Comp_Wl_Video_Buf *
+e_video_hwc_vbuf_find_with_comp_buffer(Eina_List *list, E_Comp_Wl_Buffer *comp_buffer)
+{
+ E_Comp_Wl_Video_Buf *vbuf;
+ Eina_List *l = NULL;
+
+ EINA_LIST_FOREACH(list, l, vbuf)
+ {
+ if (vbuf->comp_buffer == comp_buffer)
+ return vbuf;
+ }
+
+ return NULL;
+}
+
EINTERN E_Client *
e_video_hwc_client_offscreen_parent_get(E_Client *ec)
{
EINTERN Eina_Bool e_video_hwc_geometry_get(E_Client *ec, E_Video_Hwc_Geometry *out);
EINTERN Eina_Bool e_video_hwc_geometry_map_apply(E_Client *ec, E_Video_Hwc_Geometry *out);
+EINTERN E_Comp_Wl_Video_Buf *e_video_hwc_vbuf_find(Eina_List *list, tbm_surface_h buffer);
+EINTERN E_Comp_Wl_Video_Buf *e_video_hwc_vbuf_find_with_comp_buffer(Eina_List *list, E_Comp_Wl_Buffer *comp_buffer);
#endif
static void _e_video_vblank_handler(tdm_output *output, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec, void *user_data);
-static E_Comp_Wl_Video_Buf *
-_e_video_vbuf_find(Eina_List *list, tbm_surface_h buffer)
-{
- E_Comp_Wl_Video_Buf *vbuf;
- Eina_List *l = NULL;
-
- EINA_LIST_FOREACH(list, l, vbuf)
- {
- if (vbuf->tbm_surface == buffer)
- return vbuf;
- }
-
- return NULL;
-}
-
-static E_Comp_Wl_Video_Buf *
-_e_video_vbuf_find_with_comp_buffer(Eina_List *list, E_Comp_Wl_Buffer *comp_buffer)
-{
- E_Comp_Wl_Video_Buf *vbuf;
- Eina_List *l = NULL;
-
- EINA_LIST_FOREACH(list, l, vbuf)
- {
- if (vbuf->comp_buffer == comp_buffer)
- return vbuf;
- }
-
- return NULL;
-}
-
static E_Output *
_get_e_output(tdm_output *output)
{
E_Comp_Wl_Video_Buf *vbuf;
Eina_Bool need_pp_scanout = EINA_FALSE;
- vbuf = _e_video_vbuf_find_with_comp_buffer(evhp->input_buffer_list, comp_buffer);
+ vbuf = e_video_hwc_vbuf_find_with_comp_buffer(evhp->input_buffer_list, comp_buffer);
if (vbuf)
{
vbuf->content_r = evhp->geo.input_r;
E_Video_Hwc_Planes *evhp = (E_Video_Hwc_Planes*)user_data;
E_Comp_Wl_Video_Buf *input_buffer, *pp_buffer;
- input_buffer = _e_video_vbuf_find(evhp->input_buffer_list, sb);
+ input_buffer = e_video_hwc_vbuf_find(evhp->input_buffer_list, sb);
if (input_buffer)
e_comp_wl_video_buffer_unref(input_buffer);
- pp_buffer = _e_video_vbuf_find(evhp->pp_buffer_list, db);
+ pp_buffer = e_video_hwc_vbuf_find(evhp->pp_buffer_list, db);
if (pp_buffer)
{
e_comp_wl_video_buffer_set_use(pp_buffer, EINA_FALSE);
static Eina_Bool _e_video_frame_buffer_show(E_Video_Hwc_Windows *evhw, E_Comp_Wl_Video_Buf *vbuf);
static void _e_video_vblank_handler(tdm_output *output, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec, void *user_data);
-static E_Comp_Wl_Video_Buf *
-_e_video_vbuf_find(Eina_List *list, tbm_surface_h buffer)
-{
- E_Comp_Wl_Video_Buf *vbuf;
- Eina_List *l = NULL;
-
- EINA_LIST_FOREACH(list, l, vbuf)
- {
- if (vbuf->tbm_surface == buffer)
- return vbuf;
- }
-
- return NULL;
-}
-
-static E_Comp_Wl_Video_Buf *
-_e_video_vbuf_find_with_comp_buffer(Eina_List *list, E_Comp_Wl_Buffer *comp_buffer)
-{
- E_Comp_Wl_Video_Buf *vbuf;
- Eina_List *l = NULL;
-
- EINA_LIST_FOREACH(list, l, vbuf)
- {
- if (vbuf->comp_buffer == comp_buffer)
- return vbuf;
- }
-
- return NULL;
-}
-
static Eina_Bool
_e_video_parent_is_viewable(E_Video_Hwc_Windows *evhw)
{
E_Comp_Wl_Video_Buf *vbuf;
Eina_Bool need_pp_scanout = EINA_FALSE;
- vbuf = _e_video_vbuf_find_with_comp_buffer(evhw->input_buffer_list, comp_buffer);
+ vbuf = e_video_hwc_vbuf_find_with_comp_buffer(evhw->input_buffer_list, comp_buffer);
if (vbuf)
{
vbuf->content_r = evhw->geo.input_r;
E_Video_Hwc_Windows *evhw = (E_Video_Hwc_Windows*)user_data;
E_Comp_Wl_Video_Buf *input_buffer, *pp_buffer;
- input_buffer = _e_video_vbuf_find(evhw->input_buffer_list, sb);
+ input_buffer = e_video_hwc_vbuf_find(evhw->input_buffer_list, sb);
if (input_buffer)
e_comp_wl_video_buffer_unref(input_buffer);
- pp_buffer = _e_video_vbuf_find(evhw->pp_buffer_list, db);
+ pp_buffer = e_video_hwc_vbuf_find(evhw->pp_buffer_list, db);
if (pp_buffer)
{
e_comp_wl_video_buffer_set_use(pp_buffer, EINA_FALSE);