ec = evas_object_data_get(evas_obj, "E_Client");
EINA_SAFETY_ON_NULL_RETURN_VAL(ec, NULL);
- if (asprintf(&str, "%d", ec->comp_data ? (ec->comp_data->video_client || e_client_video_hw_composition_check((E_Client *)ec)) : 0) < 0)
+ if (asprintf(&str, "%d", e_client_video_hw_composition_check((E_Client *)ec)) < 0)
return NULL;
return str;
if (mask_rect)
mask_rect_view = (Ecore_Window)e_alpha_mask_rect_view_get(mask_rect);
maskobj = e_comp_object_mask_has(ec->frame);
- video = (ec->comp_data->video_client || e_client_video_hw_composition_check(ec)) ? 1 : 0;
+ video = e_client_video_hw_composition_check(ec);
name = e_client_util_name_get(ec);
if (!name)
name = "NO NAME";
e_comp_wl_subsurface_check_alpha_mask_rect(ec);
- buffer = e_surface_buffer_try_get(surface);
- if ((cdata->video_client) &&
- (buffer && (buffer->type == E_COMP_WL_BUFFER_TYPE_VIDEO)))
- {
- e_pixmap_image_clear(ec->pixmap, 1);
- }
-
state->buffer_viewport.changed = 0;
wl_signal_emit(&cdata->state_commit_signal, &cdata->surface);
+ buffer = e_surface_buffer_try_get(surface);
if (buffer &&
ec->exp_iconify.buffer_flush &&
e_policy_visibility_client_is_iconic(ec))
_e_comp_wl_surface_state_commit(ec, &ec->comp_data->pending);
if (!e_view_client_damage_exists(e_client_view_get(ec)))
{
- if ((ec->comp_data->video_client) ||
- (!e_client_video_hw_composition_check(ec)))
+ if (!e_client_video_hw_composition_check(ec))
e_pixmap_image_clear(ec->pixmap, 1);
}
E_API Eina_Bool
e_comp_wl_is_video_client(E_Client *ec)
{
- if (!ec) return EINA_FALSE;
- if (!ec->comp_data) return EINA_FALSE;
-
- return ec->comp_data->video_client;
+ return EINA_FALSE;
}
E_API void
e_comp_wl_video_client_set(E_Client *ec, Eina_Bool set)
{
- EINA_SAFETY_ON_NULL_RETURN(ec);
- EINA_SAFETY_ON_NULL_RETURN(ec->comp_data);
-
- ec->comp_data->video_client = set;
+ // This is left blank intentionally.
}
E_API struct wl_resource *
if (e_object_is_del(E_OBJECT(ec))) return EINA_FALSE;
if (!ec->comp_data) return EINA_FALSE;
- if ((ec->comp_data->video_client) ||
- (e_client_video_hw_composition_check(ec)))
+ if (e_client_video_hw_composition_check(ec))
return EINA_TRUE;
if (ec->comp_data->has_video_client)
/* if a leaf client is not video cliet */
if (ec->comp_data->sub.data && !ec->comp_data->sub.below_list &&
!ec->comp_data->sub.below_list_pending &&
- ((!ec->comp_data->video_client) && (!e_client_video_hw_composition_check(ec))))
+ !e_client_video_hw_composition_check(ec))
{
/* FIXME
* This is a workaround patch to fix the problem that some E_Client
static void
_e_surface_buffer_video_content_type_check_and_set(E_Surface *surface, E_Comp_Wl_Buffer *buffer)
{
- E_Client *ec = surface->ec;
-
- if (ec->comp_data->video_client)
- {
- buffer->type = E_COMP_WL_BUFFER_TYPE_VIDEO;
- buffer->w = buffer->h = 1;
- buffer->format = 0;
- }
- else if (e_client_video_hw_composition_check(ec))
- {
- buffer->type = E_COMP_WL_BUFFER_TYPE_VIDEO;
- }
+ if (e_client_video_hw_composition_check(surface->ec))
+ buffer->type = E_COMP_WL_BUFFER_TYPE_VIDEO;
}
static void
E_DEPRECATED Eina_Bool frame_update : 1;
E_DEPRECATED Eina_Bool focus_update : 1;
E_DEPRECATED Eina_Bool opaque_state : 1;
- Eina_Bool video_client : 1; // Deprecated
+ E_DEPRECATED Eina_Bool video_client : 1;
Eina_Bool has_video_client : 1;
Eina_Bool never_hwc : 1; // force window not to do hwc
Eina_Bool first_commit : 1; // TRUE : once client committed
E_API E_Client *e_comp_wl_sub_data_remote_surface_offscreen_parent_get(E_Client *ec);
E_API Eina_Bool e_comp_wl_sub_data_stand_alone_get(E_Client *ec);
-E_API Eina_Bool e_comp_wl_is_video_client(E_Client *ec);
-E_API void e_comp_wl_video_client_set(E_Client *ec, Eina_Bool set);
+E_DEPRECATED E_API Eina_Bool e_comp_wl_is_video_client(E_Client *ec);
+E_DEPRECATED E_API void e_comp_wl_video_client_set(E_Client *ec, Eina_Bool set);
E_API struct wl_resource *e_comp_wl_surface_get(E_Client *ec);
E_API struct wl_resource *e_comp_wl_wl_surface_get(E_Client *ec);