return e_surface_buffer_transform_get(surface);
}
-EINTERN enum wl_output_transform
-e_comp_wl_output_pending_buffer_transform_get(E_Client *ec)
-{
- E_Comp_Wl_Buffer_Viewport *vp;
- E_Comp_Wl_Buffer *buffer;
- enum wl_output_transform transform, rotation;
-
- if (!ec) return WL_OUTPUT_TRANSFORM_NORMAL;
- if (e_object_is_del(E_OBJECT(ec))) return WL_OUTPUT_TRANSFORM_NORMAL;
- if (!ec->comp_data) return WL_OUTPUT_TRANSFORM_NORMAL;
-
- vp = &ec->comp_data->pending.buffer_viewport;
- if (e_comp_wl_subsurface_check(ec))
- return vp->buffer.transform;
-
- buffer = ec->comp_data->pending.buffer;
-
- if (!buffer ||
- (buffer->type != E_COMP_WL_BUFFER_TYPE_NATIVE && buffer->type != E_COMP_WL_BUFFER_TYPE_TBM))
- return vp->buffer.transform;
-
- rotation = buffer->transform;
- if (rotation == 0)
- return vp->buffer.transform;
-
- /* ignore the flip value when calculating transform because the screen rotation
- * functionality doesn't consider the flip output transform currently
- */
- transform = (4 + (vp->buffer.transform & 0x3) - rotation) & 0x3;
-
- DBG("ec(%p) window rotation(%d) buffer_transform(%d) : transform(%d)",
- ec, rotation, vp->buffer.transform, transform);
-
- return transform;
-}
-
E_API void
e_comp_wl_map_size_cal_from_buffer(E_Client *ec)
{
EINTERN Eina_Bool e_comp_wl_output_init(const char *id, const char *make, const char *model, int x, int y, int w, int h, int pw, int ph, unsigned int refresh, unsigned int subpixel, unsigned int transform);
EINTERN void e_comp_wl_output_remove(const char *id);
-EINTERN enum wl_output_transform e_comp_wl_output_pending_buffer_transform_get(E_Client *ec);
EINTERN E_Comp_Wl_Output *e_comp_wl_output_find(E_Client *ec);
EINTERN Eina_Array *e_comp_wl_output_find_all(E_Client *ec);
EINTERN Eina_Bool e_comp_wl_pid_output_configured_resolution_send(pid_t pid, int w, int h);
unsigned int img_file_size,
Eina_Bool ref_set,
E_Comp_Wl_Buffer *buff,
- tbm_surface_h tbm_surface,
- Eina_Bool pending)
+ tbm_surface_h tbm_surface)
{
E_Client *src_ec = NULL;
struct wl_resource *tbm = NULL;
/* if unbinded, buffer_transform should be 0 for consumer to composite buffers.
* Otherwise, we skip sending a change_buffer event because buffer is not ready.
*/
- if (pending)
- output_transform = e_comp_wl_output_pending_buffer_transform_get(src_ec);
- else
- output_transform = e_surface_buffer_transform_get(e_surface_from_ec(src_ec));
-
+ output_transform = e_surface_buffer_transform_get(e_surface_from_ec(src_ec));
if (!rs->bind_ec && output_transform)
{
RSMINF("CHANGED_BUFF skiped: buffer not ready", rs->ec, "SURFACE", rs);
_rsm->dummy_fd,
(unsigned int)img_size,
EINA_FALSE,
- buff, tbm_surface, EINA_FALSE);
+ buff, tbm_surface);
}
else
{
fd,
(unsigned int)img_size,
EINA_FALSE,
- NULL, NULL, EINA_FALSE);
+ NULL, NULL);
close(fd);
}
_rsm->dummy_fd,
0,
EINA_TRUE,
- buffer, NULL, EINA_FALSE);
+ buffer, NULL);
}
}
fd,
(unsigned int)image_size,
EINA_FALSE,
- NULL, NULL, EINA_FALSE);
+ NULL, NULL);
}
close(fd);
_rsm->dummy_fd,
0,
EINA_TRUE,
- buffer, tbm_surface, EINA_FALSE);
+ buffer, tbm_surface);
}
else if (remote_surface->source)
{
_rsm->dummy_fd,
0,
EINA_TRUE,
- buffer, tbm_surface, EINA_FALSE);
+ buffer, tbm_surface);
}
else
{
}
static void
-_e_comp_wl_remote_surface_source_update(E_Comp_Wl_Remote_Source *source, E_Comp_Wl_Buffer *buffer, Eina_Bool pending)
+_e_comp_wl_remote_surface_source_update(E_Comp_Wl_Remote_Source *source, E_Comp_Wl_Buffer *buffer)
{
E_Comp_Wl_Remote_Surface *remote_surface;
Eina_List *l;
_rsm->dummy_fd,
0,
EINA_TRUE,
- buffer, NULL, pending);
+ buffer, NULL);
}
}
_rsm->dummy_fd,
0,
EINA_TRUE,
- buffer, NULL, EINA_FALSE);
+ buffer, NULL);
}
}
}
else if ((source = _remote_source_find(ec)))
{
- _e_comp_wl_remote_surface_source_update(source, buffer, EINA_FALSE);
+ _e_comp_wl_remote_surface_source_update(source, buffer);
}
/* send frame done */
}
//send update to remote_surface of source client
- _e_comp_wl_remote_surface_source_update(source, ec->comp_data->pending.buffer, EINA_TRUE);
+ _e_comp_wl_remote_surface_source_update(source, ec->comp_data->pending.buffer);
//do normal commit callback process
return EINA_FALSE;