tpl_wayland_egl: change version of shm_flusher 05/133205/2
authorSangjin Lee <lsj119@samsung.com>
Fri, 9 Jun 2017 07:22:13 +0000 (16:22 +0900)
committerSangjin Lee <lsj119@samsung.com>
Fri, 9 Jun 2017 07:27:49 +0000 (16:27 +0900)
Change-Id: Id0d73a50953a8d2c07430ddf18386dec91e9e636

src/protocol/tizen-surface-protocol.c
src/tpl_wayland_egl.c

index 90da268..bd5e8a6 100644 (file)
@@ -15,7 +15,7 @@ static const struct wl_message tizen_surface_shm_requests[] = {
 };
 
 WL_EXPORT const struct wl_interface tizen_surface_shm_interface = {
-       "tizen_surface_shm", 1,
+       "tizen_surface_shm", 2,
        1, tizen_surface_shm_requests,
        0, NULL,
 };
index f71b046..3328f35 100644 (file)
@@ -1419,6 +1419,8 @@ __cb_client_window_set_frontbuffer_mode(struct wl_egl_window *wl_egl_window,
                surface->is_frontbuffer_mode = TPL_FALSE;
 }
 
+#define IMPL_TIZEN_SURFACE_SHM_VERSION 2
+
 void
 __cb_resistry_global_callback(void *data, struct wl_registry *wl_registry,
                                                          uint32_t name, const char *interface,
@@ -1431,10 +1433,12 @@ __cb_resistry_global_callback(void *data, struct wl_registry *wl_registry,
                        wl_registry_bind(wl_registry,
                                                         name,
                                                         &tizen_surface_shm_interface,
-                                                        version);
+                                                        ((version < IMPL_TIZEN_SURFACE_SHM_VERSION) ?
+                                                        version : IMPL_TIZEN_SURFACE_SHM_VERSION));
        }
 }
 
+
 void
 __cb_resistry_global_remove_callback(void *data,
                                                                         struct wl_registry *wl_registry,