/* Wayland-egl window doesn't have native format information.
It is fixed from 'EGLconfig' when called eglCreateWindowSurface().
So we use the tpl_surface format instead. */
- tpl_surface_t *surface = wl_egl_window->private;
+ tpl_surface_t *surface = wl_egl_window->driver_private;
if (surface) *format = surface->format;
else {
if (a_size == 8) *format = TBM_FORMAT_ARGB8888;
surface->rotation = wl_egl_window->rotation;
surface->rotation_capability = TPL_FALSE;
- wl_egl_window->private = surface;
+ wl_egl_window->driver_private = surface;
wl_egl_window->resize_callback = (void *)__cb_client_window_resize_callback;
wl_egl_window->rotate_callback = (void *)__cb_client_window_rotate_callback;
wl_egl_window->get_rotation_capability = (void *)
TPL_ASSERT(wl_egl_window);
/* TPL_ASSERT(wl_egl_window->surface); */ /* to be enabled once evas/gl patch is in place */
- wl_egl_window->private = NULL;
+ wl_egl_window->driver_private = NULL;
wl_egl_window->resize_callback = NULL;
wl_egl_window->rotate_callback = NULL;
wl_egl_window->get_rotation_capability = NULL;
TPL_LOG_T(BACKEND, "[DESTROY_CB] wl_egl_window(%p) surf_source(%p)",
surf_source->wl_egl_window, surf_source);
g_mutex_lock(&surf_source->surf_mutex);
- surf_source->wl_egl_window->private = NULL;
+ surf_source->wl_egl_window->driver_private = NULL;
surf_source->wl_egl_window = NULL;
surf_source->surf = NULL;
surf_source->is_destroying = TPL_TRUE;
surf_source->wl_egl_window->resize_callback = NULL;
surf_source->wl_egl_window->rotate_callback = NULL;
surf_source->wl_egl_window->get_rotation_capability = NULL;
- surf_source->wl_egl_window->private = NULL;
+ surf_source->wl_egl_window->driver_private = NULL;
surf_source->wl_egl_window = NULL;
surf_source->surf = NULL;
}
struct wl_egl_window *wl_egl_window =
(struct wl_egl_window *)native_handle;
- wl_egl_window->private = (void *)source;
+ wl_egl_window->driver_private = (void *)source;
wl_egl_window->destroy_window_callback = (void *)__cb_destroy_callback;
wl_egl_window->resize_callback = (void *)__cb_resize_callback;
wl_egl_window->rotate_callback = (void *)__cb_rotate_callback;
if (width) *width = wl_egl_window->width;
if (height) *height = wl_egl_window->height;
if (format) {
- if (wl_egl_window->private) {
- twe_wl_surf_source *surf_source = (twe_wl_surf_source *)wl_egl_window->private;
+ if (wl_egl_window->driver_private) {
+ twe_wl_surf_source *surf_source = (twe_wl_surf_source *)wl_egl_window->driver_private;
*format = surf_source->format;
} else {
if (a_size == 8)
int attached_width;
int attached_height;
+ void *driver_private;
+
+ /* Tizen specific datas */
wl_egl_window_rotation rotation;
int frontbuffer_mode;
int transform;
int window_transform;
unsigned int serial;
- void *private;
void (*destroy_window_callback)(void *);
void (*resize_callback)(struct wl_egl_window *, void *);
void (*rotate_callback)(struct wl_egl_window *, void *);
egl_window->rotation = rotation;
if (egl_window->rotate_callback)
- egl_window->rotate_callback(egl_window, egl_window->private);
+ egl_window->rotate_callback(egl_window, egl_window->driver_private);
}
int
}
if (egl_window->get_rotation_capability)
- capabilities = egl_window->get_rotation_capability(egl_window, egl_window->private);
+ capabilities = egl_window->get_rotation_capability(egl_window, egl_window->driver_private);
else
capabilities = WL_EGL_WINDOW_CAPABILITY_ROTATION_UNKNOWN;
egl_window->frontbuffer_mode = set;
if (egl_window->set_frontbuffer_callback)
- egl_window->set_frontbuffer_callback(egl_window, egl_window->private,
+ egl_window->set_frontbuffer_callback(egl_window, egl_window->driver_private,
set);
}
}
if (egl_window->set_window_serial_callback)
- egl_window->set_window_serial_callback(egl_window, egl_window->private,
+ egl_window->set_window_serial_callback(egl_window, egl_window->driver_private,
serial);
}
\ No newline at end of file
egl_window->height = height;
if (egl_window->resize_callback)
- egl_window->resize_callback(egl_window, egl_window->private);
+ egl_window->resize_callback(egl_window, egl_window->driver_private);
WL_EGL_LOG(2, "egl_win:%10p WxH:%dx%d dx:%d dy:%d rsz_cb:%10p",
egl_window, width, height, egl_window->dx, egl_window->dy,
egl_window->window_transform = 0;
egl_window->serial = 0;
- egl_window->private = NULL;
+ egl_window->driver_private = NULL;
egl_window->rotate_callback = NULL;
egl_window->get_rotation_capability = NULL;
egl_window->destroy_window_callback = NULL;
WL_EGL_LOG(2, "surf:%10p WxH:%dx%d egl_win:%10p priv:%10p",
- surface, width, height, egl_window, egl_window->private);
+ surface, width, height, egl_window, egl_window->driver_private);
return egl_window;
}
}
if (egl_window->destroy_window_callback)
- egl_window->destroy_window_callback(egl_window->private);
+ egl_window->destroy_window_callback(egl_window->driver_private);
WL_EGL_LOG(2, "egl_win:%10p", egl_window);
egl_window->rotation = rotation;
if (egl_window->rotate_callback)
- egl_window->rotate_callback(egl_window, egl_window->private);
+ egl_window->rotate_callback(egl_window, egl_window->driver_private);
}
WL_EGL_EXPORT void
}
if (egl_window->get_rotation_capability)
- capabilities = egl_window->get_rotation_capability(egl_window, egl_window->private);
+ capabilities = egl_window->get_rotation_capability(egl_window, egl_window->driver_private);
else
capabilities = WL_EGL_WINDOW_CAPABILITY_ROTATION_UNKNOWN;
egl_window->frontbuffer_mode = set;
if (egl_window->set_frontbuffer_callback)
- egl_window->set_frontbuffer_callback(egl_window, egl_window->private,
+ egl_window->set_frontbuffer_callback(egl_window, egl_window->driver_private,
set);
}