E_API int E_EVENT_PLANE_WIN_CHANGE = -1;
+static E_Comp_Wl_Buffer *
+_get_comp_wl_buffer(E_Client *ec)
+{
+ E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
+ if (!cdata) return NULL;
+
+ E_Comp_Wl_Buffer_Ref *buffer_ref = &cdata ->buffer_ref;
+
+ return buffer_ref->buffer;
+}
+
static struct wl_resource *
_get_wl_buffer(E_Client *ec)
{
_e_plane_surface_from_client_acquire(E_Plane *plane)
{
E_Client *ec = plane->ec;
- E_Pixmap *pixmap = ec->pixmap;
- E_Comp_Wl_Buffer *buffer = e_pixmap_resource_get(pixmap);
+ E_Comp_Wl_Buffer *buffer = _get_comp_wl_buffer(ec);
E_Comp_Wl_Data *wl_comp_data = (E_Comp_Wl_Data *)e_comp->wl_comp_data;
E_Plane_Renderer *renderer = plane->renderer;
tbm_surface_h tsurface = NULL;
data->tsurface = plane->tsurface;
tbm_surface_internal_ref(data->tsurface);
data->ec = plane->ec;
- e_comp_wl_buffer_reference(&data->buffer_ref, e_pixmap_resource_get(plane->ec->pixmap));
+ e_comp_wl_buffer_reference(&data->buffer_ref, _get_comp_wl_buffer(plane->ec));
/* set the update_exist to be false */
e_plane_renderer_update_exist_set(plane->renderer, EINA_FALSE);
static Eina_List *plane_hdlrs = NULL;
static Eina_Bool renderer_trace_debug = 0;
+static E_Comp_Wl_Buffer *
+_get_comp_wl_buffer(E_Client *ec)
+{
+ E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
+ if (!cdata) return NULL;
+
+ E_Comp_Wl_Buffer_Ref *buffer_ref = &cdata ->buffer_ref;
+
+ return buffer_ref->buffer;
+}
+
static struct wl_resource *
_get_wl_buffer(E_Client *ec)
{
{
tbm_surface_h tsurface = NULL;
tbm_surface_h new_tsurface = NULL;
- E_Pixmap *pixmap = NULL;
E_Comp_Wl_Buffer *buffer = NULL;
tbm_surface_info_s src_info, dst_info;
E_Comp_Wl_Data *wl_comp_data = (E_Comp_Wl_Data *)e_comp->wl_comp_data;
E_Client *ec = renderer_client->ec;
E_Plane_Renderer *renderer = renderer_client->renderer;
- pixmap = ec->pixmap;
-
if (refresh)
e_pixmap_image_refresh(ec->pixmap);
- buffer = e_pixmap_resource_get(pixmap);
+ buffer = _get_comp_wl_buffer(ec);
if (buffer)
{
tsurface = wayland_tbm_server_get_surface(wl_comp_data->tbm.server, buffer->resource);
tbm_surface_h tsurface = NULL;
E_Comp_Wl_Data *wl_comp_data = (E_Comp_Wl_Data *)e_comp->wl_comp_data;
E_Client *ec = renderer_client->ec;
- E_Pixmap *pixmap = ec->pixmap;
uint32_t flags = 0;
E_Comp_Wl_Buffer *buffer = NULL;
- buffer = e_pixmap_resource_get(pixmap);
+ buffer = _get_comp_wl_buffer(ec);
if (!buffer) return 0;
switch (buffer->type)
tbm_surface_h tsurface = NULL;
E_Comp_Wl_Data *wl_comp_data = (E_Comp_Wl_Data *)e_comp->wl_comp_data;
E_Client *ec = NULL;
- E_Pixmap *pixmap = NULL;
uint32_t flags = 0;
E_Comp_Wl_Buffer *buffer = NULL;
E_Plane_Renderer *renderer = NULL;
ec = renderer_client->ec;
renderer = renderer_client->renderer;
- pixmap = ec->pixmap;
- buffer = e_pixmap_resource_get(pixmap);
+ buffer = _get_comp_wl_buffer(ec);
EINA_SAFETY_ON_NULL_RETURN_VAL(buffer, NULL);
tsurface = wayland_tbm_server_get_surface(wl_comp_data->tbm.server, buffer->resource);