tpl_wl_egl_buffer_t *wl_egl_buffer = NULL;
tbm_surface_queue_error_e tsq_err = TBM_SURFACE_QUEUE_ERROR_NONE;
- tpl_bool_t is_activated = 0;
int bo_name = 0;
tbm_surface_h tbm_surface = NULL;
* during below dequeue procedure. */
tpl_gmutex_lock(&wl_egl_display->wl_event_mutex);
- /* wayland client can check their states (ACTIVATED or DEACTIVATED) with
- * below function [wayland_tbm_client_queue_check_activate()].
- * This function has to be called before tbm_surface_queue_dequeue()
- * in order to know what state the buffer will be dequeued next.
- *
- * ACTIVATED state means non-composite mode. Client can get buffers which
- can be displayed directly(without compositing).
- * DEACTIVATED state means composite mode. Client's buffer will be displayed
- by compositor(E20) with compositing.
- */
- is_activated = wayland_tbm_client_queue_check_activate(
- wl_egl_display->wl_tbm_client,
- wl_egl_surface->tbm_queue);
-
- wl_egl_surface->is_activated = is_activated;
-
surface->width = tbm_surface_queue_get_width(wl_egl_surface->tbm_queue);
surface->height = tbm_surface_queue_get_height(wl_egl_surface->tbm_queue);
wl_egl_surface->width = surface->width;
* */
if (surface->frontbuffer) {
if (!surface->is_frontbuffer_mode ||
- !is_activated ||
+ !wl_egl_surface->is_activated ||
wl_egl_surface->reset) {
surface->frontbuffer = NULL;
wl_egl_surface->need_to_enqueue = TPL_TRUE;
}
}
- if (surface->is_frontbuffer_mode && is_activated) {
+ if (surface->is_frontbuffer_mode && wl_egl_surface->is_activated) {
if (surface->frontbuffer == NULL) {
TPL_INFO("[FRONTBUFFER RENDERING START]",
"wl_egl_surface(%p) wl_egl_window(%p) bo(%d)",