tpl_wayland_egl_thread: Modified using Wayland API that does not fit in bound version. 11/135111/5
authorjoonbum.ko <joonbum.ko@samsung.com>
Wed, 24 May 2017 04:28:34 +0000 (13:28 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 22 Jun 2017 08:54:45 +0000 (08:54 +0000)
 - wl_surface_damage_buffer -> wl_surface_damage
 - Since 'wl_surface_damage_buffer' is higher API, it is not nomarlly supported on the current platform.
 - When wayland client need to use this API, I will add it with version checking syntax.

Change-Id: If5d426edc63fb481c637b17f5955949b1b31c1a1
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c

index da715db..21f151a 100644 (file)
@@ -844,20 +844,20 @@ _twe_thread_wl_surface_commit(twe_wl_surf_source *surf_source,
                                          buf_info->dx, buf_info->dy);
 
        if (buf_info->num_rects < 1 || buf_info->rects == NULL) {
-               wl_surface_damage_buffer(wl_surface,
-                                                                buf_info->dx, buf_info->dy,
-                                                                buf_info->width, buf_info->height);
+               wl_surface_damage(wl_surface,
+                                                 buf_info->dx, buf_info->dy,
+                                                 buf_info->width, buf_info->height);
        } else {
                int i;
                for (i = 0; i < buf_info->num_rects; i++) {
                        int inverted_y =
                                buf_info->height - (buf_info->rects[i * 4 + 1] +
                                                buf_info->rects[i * 4 + 3]);
-                       wl_surface_damage_buffer(wl_surface,
-                                                                        buf_info->rects[i * 4 + 0],
-                                                                        inverted_y,
-                                                                        buf_info->rects[i * 4 + 2],
-                                                                        buf_info->rects[i * 4 + 3]);
+                       wl_surface_damage(wl_surface,
+                                                         buf_info->rects[i * 4 + 0],
+                                                         inverted_y,
+                                                         buf_info->rects[i * 4 + 2],
+                                                         buf_info->rects[i * 4 + 3]);
                }
        }