WL_TBM_GOTO_IF_FAIL(tbm_surface != NULL, fail);
wl_buffer_set_user_data(wl_buffer, tbm_surface);
- WL_TBM_LOG("import id wl_buffer:%u tsurface:%p", (unsigned int)wl_proxy_get_id((struct wl_proxy *)wl_buffer), tbm_surface);
+ WL_TBM_LOG_E("import id wl_buffer:%u tsurface:%p", (unsigned int)wl_proxy_get_id((struct wl_proxy *)wl_buffer), tbm_surface);
snprintf(debug_id, sizeof(debug_id), "%u", (unsigned int)wl_proxy_get_id((struct wl_proxy *)wl_buffer));
tbm_surface_internal_set_debug_data(tbm_surface, "id", debug_id);
#ifdef DEBUG_TRACE
WL_TBM_TRACE("pid:%d\n", getpid());
#endif
+
_wayland_tbm_client_queue_destory_attach_bufs(queue_info);
tbm_surface_queue_set_size(queue_info->tbm_queue, queue_info->queue_size, 1);
}
WL_TBM_RETURN_IF_FAIL(wl_buffer != NULL);
- WL_TBM_LOG("attached wl_buffer:%u",
+ WL_TBM_LOG_E("attached wl_buffer:%u",
(unsigned int)wl_proxy_get_id((struct wl_proxy *)wl_buffer));
buffer = calloc(1, sizeof(struct wayland_tbm_buffer));
struct wayland_tbm_surface_queue *queue_info =
(struct wayland_tbm_surface_queue *)data;
+ WL_TBM_LOG_E("active queue\n");
+
if (queue_info->is_active) {
WL_TBM_C_LOG("warning: queue_info is already activated\n");
return;
WL_TBM_TRACE(" pid:%d\n", getpid());
#endif
+ WL_TBM_LOG_E("deactive queue\n");
+
if (!queue_info->is_active) {
WL_TBM_C_LOG("warning: queue_info is already deactivated\n");
return;
#ifdef DEBUG_TRACE
WL_TBM_TRACE("pid:%d\n", getpid());
#endif
+ WL_TBM_LOG_E("flush queue\n");
if (queue_info->is_active) {
WL_TBM_C_LOG("warning: Cannot flush the tbm_surface_queueu. The queue is activate.\n");
#define WL_TBM_C_LOG(fmt, ...) {\
if (bDlog) {\
- LOGI("[WL_TBM_C] " fmt, ##__VA_ARGS__);\
+ LOGE("[WL_TBM_C] " fmt, ##__VA_ARGS__);\
} \
else {\
fprintf(stderr, "[WL_TBM_C(%d):%s] " fmt, getpid(), __func__, ##__VA_ARGS__);\
fprintf(stderr, "[WL_TBM(%d)] " fmt, getpid(), ##__VA_ARGS__);\
} \
}
+
+/* temp log */
+#define WL_TBM_LOG_E(fmt, ...) {\
+ if (bDlog) {\
+ LOGE("[WL_TBM] " fmt, ##__VA_ARGS__);\
+ } \
+ else {\
+ fprintf(stderr, "[WL_TBM(%d)] " fmt, getpid(), ##__VA_ARGS__);\
+ } \
+}
#else
#define WL_TBM_C_LOG(fmt, ...) fprintf(stderr, "[WL_TBM_C(%d):%s] " fmt, getpid(), __func__, ##__VA_ARGS__)
#define WL_TBM_S_LOG(fmt, ...) fprintf(stderr, "[WL_TBM_S(%d):%s] " fmt, getpid(), __func__, ##__VA_ARGS__)
#define WL_TBM_LOG(fmt, ...) fprintf(stderr, "[WL_TBM(%d)] " fmt, getpid(), ##__VA_ARGS__)
+#define WL_TBM_LOG_E(fmt, ...) fprintf(stderr, "[WL_TBM_E(%d)] " fmt, getpid(), ##__VA_ARGS__)
#endif /* ENABLE_DLOG */
#define WL_TBM_DEBUG(fmt, ...) fprintf(stderr, "[WL_TBM:DEBUG(%d)] " fmt, getpid(), ##__VA_ARGS__)
#ifdef DEBUG_TRACE
WL_TBM_TRACE(" pid:%d\n", cqueue->pid);
#endif
+ WL_TBM_LOG_E("send active queue pid:%d\n", cqueue->pid);
wl_tbm_queue_send_active(cqueue->wl_tbm_queue, usage, queue_size, 1);
}
#ifdef DEBUG_TRACE
WL_TBM_TRACE(" pid:%d\n", cqueue->pid);
#endif
+ WL_TBM_LOG_E("send deactive queue pid:%d", cqueue->pid);
wl_tbm_queue_send_deactive(cqueue->wl_tbm_queue);
}
(unsigned int)wl_resource_get_id(tbm_buffer->wl_buffer));
tbm_surface_internal_set_debug_data(surface, "id", debug_id);
+ WL_TBM_LOG_E("export buffer pid:%d", cqueue->pid);
+
return tbm_buffer->wl_buffer;
}
#ifdef DEBUG_TRACE
WL_TBM_TRACE(" pid:%d\n", cqueue->pid);
#endif
+ WL_TBM_LOG_E("send flush queue pid:%d", cqueue->pid);
wl_tbm_queue_send_flush(cqueue->wl_tbm_queue);
}