From 1e38cf04d7eef6385261be48ffcfa0db74f51fe2 Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Tue, 26 Sep 2017 15:46:55 +0900 Subject: [PATCH] tpl_wayland_egl_thread: Added backend type parameter of twe_display_add(). - To distinguish the backend of the display. Change-Id: I4a281d1e39b764918406a85bfff6cf976e60588c Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 4 +++- src/tpl_wayland_egl_thread.h | 4 +++- src/tpl_wl_egl_thread.c | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 9a863bd..9894301 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -777,7 +777,9 @@ _twe_thread_wl_disp_source_destroy(void *source) } twe_display_h -twe_display_add(twe_thread* thread, struct wl_display *display) +twe_display_add(twe_thread* thread, + struct wl_display *display, + tpl_backend_type_t backend) { twe_thread_context *ctx = thread->ctx; twe_wl_disp_source *source; diff --git a/src/tpl_wayland_egl_thread.h b/src/tpl_wayland_egl_thread.h index b8ccb2e..0348b1c 100644 --- a/src/tpl_wayland_egl_thread.h +++ b/src/tpl_wayland_egl_thread.h @@ -17,7 +17,9 @@ void twe_thread_destroy(twe_thread* thread); twe_display_h -twe_display_add(twe_thread* thread, struct wl_display *display); +twe_display_add(twe_thread* thread, + struct wl_display *display, + tpl_backend_type_t backend); tpl_result_t twe_display_del(twe_display_h display); diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index da3d41c..b7e2128 100644 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -66,7 +66,8 @@ __tpl_wl_egl_display_init(tpl_display_t *display) wayland_egl_display->twe_display = twe_display_add(wayland_egl_display->wl_egl_thread, - display->native_handle); + display->native_handle, + display->backend.type); if (!wayland_egl_display->twe_display) { TPL_ERR("Failed to add native_display(%p) to thread(%p)", display->native_handle, -- 2.7.4