wl_egl_buffer, tbm_surface,
_get_tbm_surface_bo_name(tbm_surface));
- if (wl_egl_buffer->wl_buffer == NULL) {
- tpl_wl_egl_display_t *wl_egl_display = wl_egl_surface->wl_egl_display;
- wl_egl_buffer->wl_buffer =
- (struct wl_proxy *)wayland_tbm_client_create_buffer(
- wl_egl_display->wl_tbm_client, tbm_surface);
-
- if (!wl_egl_buffer->wl_buffer) {
- TPL_WARN("Failed to create wl_buffer. wl_tbm_client(%p) tbm_surface(%p)",
- wl_egl_display->wl_tbm_client, tbm_surface);
- } else {
- TPL_INFO("[WL_BUFFER_CREATE]",
- "wl_egl_buffer(%p) wl_buffer(%p) tbm_surface(%p)",
- wl_egl_buffer, wl_egl_buffer->wl_buffer, tbm_surface);
-#if TIZEN_FEATURE_ENABLE
- if (!wl_egl_display->use_explicit_sync ||
- !wl_egl_surface->surface_sync)
-#endif
- {
- wl_buffer_add_listener((struct wl_buffer *)wl_egl_buffer->wl_buffer,
- &wl_buffer_release_listener,
- wl_egl_buffer);
- }
- }
- }
-
if (wl_egl_buffer->acquire_fence_fd != -1) {
#if TIZEN_FEATURE_ENABLE
if (wl_egl_surface->surface_sync)
"wl_egl_buffer(%p) wl_buffer(%p) tbm_surface(%p)",
wl_egl_buffer, wl_egl_buffer->wl_buffer,
wl_egl_buffer->tbm_surface);
-
+
#if TIZEN_FEATURE_ENABLE
if (!wl_egl_display->use_explicit_sync ||
!wl_egl_surface->surface_sync)
tpl_gmutex_unlock(&wl_egl_surface->buffers_mutex);
if (wl_egl_display) {
- wl_display_flush(wl_egl_display->wl_display);
-
if (wl_egl_buffer->wl_buffer) {
wayland_tbm_client_destroy_buffer(wl_egl_display->wl_tbm_client,
(void *)wl_egl_buffer->wl_buffer);
wl_egl_buffer->wl_buffer = NULL;
}
+
+ wl_display_flush(wl_egl_display->wl_display);
}
#if TIZEN_FEATURE_ENABLE