EOLIAN static Eo *
_ecore_audio_out_tizen_efl_object_constructor(Eo *eo_obj, Ecore_Audio_Out_Tizen_Data *_td)
{
-
- Ecore_Audio_Output *out_obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_OUT_CLASS);
-
eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
if (!_module_load(_td))
int width, int height,
Ecore_Buffer_Format format,
unsigned int flags); /**< Newly allocate memory for buffer */
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
Ecore_Buffer_Data (*buffer_alloc_with_tbm_surface)(Ecore_Buffer_Module_Data bmdata,
void *tbm_surface,
int *ret_w, int *ret_h,
Eina_Bool (*buffer_info_get)(Ecore_Buffer_Module_Data bmdata,
Ecore_Buffer_Data bdata,
Ecore_Buffer_Info *info);
+ //
void (*buffer_free)(Ecore_Buffer_Module_Data bmdata,
Ecore_Buffer_Data bdata); /**< Free allocated memory */
Ecore_Export_Type (*buffer_export)(Ecore_Buffer_Module_Data bmdata,
Ecore_Export_Type type,
int export_id,
unsigned int flags); /**< Import and create Ecore_Buffer from id or fd */
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
+ void *(*data_get)(Ecore_Buffer_Module_Data bmdata,
+ Ecore_Buffer_Data bdata);
+ //
Ecore_Pixmap (*pixmap_get)(Ecore_Buffer_Module_Data bmdata,
Ecore_Buffer_Data bdata); /**< Get the pixmap handle */
void *(*tbm_surface_get)(Ecore_Buffer_Module_Data bmdata,
Ecore_Wl2_Display *ewd = data;
if (!ewd) return;
- if (_base_resolution_pid != pid)
+ if ((unsigned int)_base_resolution_pid != pid)
{
ERR("tzappinfo_cb_size_get_done pid is different. pid: %d / width: %d / height: %d appinfo_pid: %d", pid, width, height, _base_resolution_pid);
return;
};
static void
-_tizen_move_resize_cb_geometry_done(void *data EINA_UNUSED, struct tizen_move_resize *tz_moveresize EINA_UNUSED, struct wl_surface *surface EINA_UNUSED, uint32_t serial EINA_UNUSED, int32_t x EINA_UNUSED, int32_t y EINA_UNUSED, int32_t w EINA_UNUSED, int32_t h EINA_UNUSED, int32_t err EINA_UNUSED)
+_tizen_move_resize_cb_geometry_done(void *data EINA_UNUSED, struct tizen_move_resize *tz_moveresize EINA_UNUSED, struct wl_surface *surface EINA_UNUSED, uint32_t serial EINA_UNUSED, int32_t x EINA_UNUSED, int32_t y EINA_UNUSED, int32_t w EINA_UNUSED, int32_t h EINA_UNUSED, uint32_t err EINA_UNUSED)
{
/* to be implemented*/
}
ewd->wl.tz_moveresize =
wl_registry_bind(registry, id, &tizen_move_resize_interface, 1);
if (ewd->wl.tz_moveresize)
- tizen_screen_rotation_add_listener(ewd->wl.tz_moveresize, &_tizen_move_resize_listener, ewd->wl.display);
+ tizen_move_resize_add_listener(ewd->wl.tz_moveresize, &_tizen_move_resize_listener, ewd->wl.display);
}
//
// TIZEN_ONLY(20190430): support client appinfo
_keyboard_cb_repeat(void *data)
{
Ecore_Wl2_Input *input;
- Ecore_Wl2_Window *window;
input = data;
if (!input) return ECORE_CALLBACK_RENEW;
}
static void
-_ecore_wl2_cb_event_surface(void *data, struct tizen_keyrouter *tizen_keyrouter EINA_UNUSED, struct wl_surface *surface, uint32_t mode)
+_ecore_wl2_cb_event_surface(void *data, struct tizen_keyrouter *tizen_keyrouter EINA_UNUSED, struct wl_surface *surface, uint32_t key EINA_UNUSED, uint32_t mode)
{
Ecore_Wl2_Display *ewd = (Ecore_Wl2_Display *)data;
Ecore_Wl2_Input *input;
# include "Ecore_Input.h"
# include <xkbcommon/xkbcommon-compose.h>
# include "www-client-protocol.h"
+# include "ecore_wl2_internal.h"
# define EFL_TEAMWORK_VERSION 2
# include "teamwork-client-protocol.h"
if (w < 1) w = 1;
if (h < 1) h = 1;
- if ((w >= surf->w) && (w <= surf->stride / 4) && (h == surf->h))
+ if ((w >= surf->w) && (w <= (int)surf->stride / 4) && (h == surf->h))
{
surf->w = w;
return;
EINA_SAFETY_ON_NULL_RETURN(win->parent);
if (!win->parent->zxdg_surface) return;
- pos = zxdg_shell_v6_create_positioner(win->display->wl.zxdg_shell);
+ pos = xdg_wm_base_create_positioner(win->display->wl.xdg_wm_base);
if (!pos) return;
ecore_wl2_window_geometry_get(win, NULL, NULL, &gw, &gh);
return EXPORT_TYPE_FD;
}
+//TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
static void *
-_ecore_buffer_shm_buffer_import(Ecore_Buffer_Module_Data bmdata EINA_UNUSED, int w, int h, Ecore_Buffer_Format format EINA_UNUSED, Ecore_Export_Type type, int export_id, unsigned int flags EINA_UNUSED)
+//_ecore_buffer_shm_buffer_import(Ecore_Buffer_Module_Data bmdata EINA_UNUSED, int w, int h, Ecore_Buffer_Format format EINA_UNUSED, Ecore_Export_Type type, int export_id, unsigned int flags EINA_UNUSED)
+_ecore_buffer_shm_buffer_import(Ecore_Buffer_Module_Data bmdata EINA_UNUSED, Ecore_Buffer_Info *einfo, Ecore_Export_Type type, int export_id, unsigned int flags EINA_UNUSED)
{
Ecore_Buffer_Shm_Data* b;
int fd, page_size;
page_size = eina_cpu_page_size();
fd = export_id;
- b->w = w;
- b->h = h;
- b->stride = w * sizeof(int);
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
+ //b->w = w;
+ //b->h = h;
+ //b->stride = w * sizeof(int);
+ b->w = einfo->width;
+ b->h = einfo->height;
+ b->stride = einfo->planes[0].stride;
+ //
b->size = page_size * (((b->stride * b->h) + (page_size - 1)) / page_size);
b->am_owner = EINA_FALSE;
NULL,
NULL,
&_ecore_buffer_shm_buffer_alloc,
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
+ NULL,
+ NULL,
+ //
&_ecore_buffer_shm_buffer_free,
&_ecore_buffer_shm_buffer_export,
&_ecore_buffer_shm_buffer_import,
&_ecore_buffer_tbm_buffer_export,
&_ecore_buffer_tbm_buffer_import,
NULL,
+ NULL,
&_ecore_buffer_tbm_tbm_bo_get,
};
return EXPORT_TYPE_ID;
}
+//TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
static void *
-_ecore_buffer_x11_dri2_buffer_import(Ecore_Buffer_Module_Data bmdata EINA_UNUSED, int w, int h, Ecore_Buffer_Format format, Ecore_Export_Type type, int export_id, unsigned int flags EINA_UNUSED)
+//_ecore_buffer_x11_dri2_buffer_import(Ecore_Buffer_Module_Data bmdata EINA_UNUSED, int w, int h, Ecore_Buffer_Format format, Ecore_Export_Type type, int export_id, unsigned int flags EINA_UNUSED)
+_ecore_buffer_x11_dri2_buffer_import(Ecore_Buffer_Module_Data bmdata EINA_UNUSED, Ecore_Buffer_Info *einfo, Ecore_Export_Type type, int export_id, unsigned int flags EINA_UNUSED)
{
Ecore_Buffer_Module_X11_Dri2_Data *bm = bmdata;
Ecore_X_Display *xdpy;
if (!buf)
return NULL;
- buf->w = w;
- buf->h = h;
- buf->format = format;
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
+ //buf->w = w;
+ //buf->h = h;
+ //buf->format = format;
+ buf->w = einfo->width;
+ buf->h = einfo->height;
+ buf->format = einfo->format;
+ //
buf->pixmap = pixmap;
buf->is_imported = EINA_TRUE;
goto on_error;
num_plane = _buf_get_num_planes(format);
- info.width = w;
- info.height = h;
- info.format = format;
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
+ //info.width = w;
+ //info.height = h;
+ //info.format = format;
+ info.width = einfo->width;
+ info.height = einfo->height;
+ info.format = einfo->format;
info.bpp = _buf_get_bpp(format);
- info.size = w * bufs->pitch;
+
+ //info.size = w * bufs->pitch;
+ info.size = einfo->width * bufs->pitch;
for ( i = 0 ; i < num_plane ; i++)
{
- info.planes[i].size = w * bufs->pitch;
+ //info.planes[i].size = w * bufs->pitch;
+ info.planes[i].size = einfo->width * bufs->pitch;
+ //
info.planes[i].stride = bufs->pitch;
info.planes[i].offset = 0;
}
&_ecore_buffer_x11_dri2_init,
&_ecore_buffer_x11_dri2_shutdown,
&_ecore_buffer_x11_dri2_buffer_alloc,
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
+ NULL,
+ NULL,
+ //
&_ecore_buffer_x11_dri2_buffer_free,
&_ecore_buffer_x11_dri2_buffer_export,
&_ecore_buffer_x11_dri2_buffer_import,
return EXPORT_TYPE_FD;
}
+//TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
static Ecore_Buffer_Data
-_ecore_buffer_x11_dri3_buffer_import(Ecore_Buffer_Module_Data bmdata, int w, int h, Ecore_Buffer_Format format, Ecore_Export_Type type, int export_id, unsigned int flags)
+//_ecore_buffer_x11_dri3_buffer_import(Ecore_Buffer_Module_Data bmdata, int w, int h, Ecore_Buffer_Format format, Ecore_Export_Type type, int export_id, unsigned int flags)
+_ecore_buffer_x11_dri3_buffer_import(Ecore_Buffer_Module_Data bmdata, Ecore_Buffer_Info *einfo, Ecore_Export_Type type, int export_id, unsigned int flags)
{
Ecore_Buffer_Module_X11_Dri3_Data *bm = bmdata;
Ecore_Buffer_X11_Dri3_Data *buf;
if (!buf)
return NULL;
- buf->w = w;
- buf->h = h;
- buf->format = format;
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
+ //buf->w = w;
+ //buf->h = h;
+ //buf->format = format;
+ buf->w = einfo->width;
+ buf->h = einfo->height;
+ buf->format = einfo->format;
+ //
buf->flags = flags;
buf->is_imported = EINA_TRUE;
}
num_plane = _buf_get_num_planes(format);
- info.width = w;
- info.height = h;
- info.format = format;
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
+ //info.width = w;
+ //info.height = h;
+ //info.format = format;
+ info.width = einfo->width;
+ info.height = einfo->height;
+ info.format = einfo->format;
info.bpp = _buf_get_bpp(format);
- info.size = w * h * info.bpp;
+ //info.size = w * h * info.bpp;
+ info.size einfo->width * einfo->height * info.bpp;
for ( i = 0 ; i < num_plane ; i++)
{
- info.planes[i].size = w * h * info.bpp;
- info.planes[i].stride = w * info.bpp;
+ //info.planes[i].size = w * h * info.bpp;
+ //info.planes[i].stride = w * info.bpp;
+ info.planes[i].size = einfo->width * einfo->height * info.bpp;
+ info.planes[i].stride = einfo->width * info.bpp;
+ //
info.planes[i].offset = 0;
}
&_ecore_buffer_x11_dri3_init,
&_ecore_buffer_x11_dri3_shutdown,
&_ecore_buffer_x11_dri3_buffer_alloc,
+ //TIZEN_ONLY(20191129): _Ecore_Buffer_Backend has broken for Tizen Only module.
+ NULL,
+ NULL,
+ //
&_ecore_buffer_x11_dri3_buffer_free,
&_ecore_buffer_x11_dri3_buffer_export,
&_ecore_buffer_x11_dri3_buffer_import,
}
static void
-_evas_dmabuf_surface_set_serial(Ecore_Wl2_Surface *surface EINA_UNUSED, void *priv_data, unsigned int count)
+_evas_dmabuf_surface_set_serial(Ecore_Wl2_Surface *surface EINA_UNUSED, void *priv_data EINA_UNUSED, unsigned int count EINA_UNUSED)
{
}