summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-10 13:33:46 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-10 13:43:45 -0600
commit77212021f3f9f43c1c87ef7a04d82bb44b556f31 (patch)
tree8d281b8ff536f067d5107375137f73058ae6e8b8 /src
parentabba80f3d6bea27c17ec508cd54f5f867238d315 (diff)
waylamd_shm: Use ecore_wl2_window_damage
The new library function provides the same functionality and will allow us to stop tracking things in the engine that the library already knows about windows (compositor_version)
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_dmabuf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
index ad46ad83ba..87a896f4ef 100644
--- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
@@ -648,7 +648,6 @@ _evas_dmabuf_surface_assign(Surface *s)
648static void 648static void
649_evas_dmabuf_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count) 649_evas_dmabuf_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count)
650{ 650{
651 struct wl_surface *wls;
652 Dmabuf_Surface *surface; 651 Dmabuf_Surface *surface;
653 Dmabuf_Buffer *b; 652 Dmabuf_Buffer *b;
654 Ecore_Wl2_Window *win; 653 Ecore_Wl2_Window *win;
@@ -665,11 +664,9 @@ _evas_dmabuf_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count)
665 b->age = 0; 664 b->age = 0;
666 665
667 win = s->info->info.wl2_win; 666 win = s->info->info.wl2_win;
668 wls = ecore_wl2_window_surface_get(win);
669 667
670 ecore_wl2_window_buffer_attach(win, b->wl_buffer, 0, 0, EINA_FALSE); 668 ecore_wl2_window_buffer_attach(win, b->wl_buffer, 0, 0, EINA_FALSE);
671 _evas_surface_damage(wls, surface->compositor_version, 669 ecore_wl2_window_damage(win, rects, count);
672 b->w, b->h, rects, count);
673 670
674 ecore_wl2_window_commit(s->info->info.wl2_win, EINA_TRUE); 671 ecore_wl2_window_commit(s->info->info.wl2_win, EINA_TRUE);
675} 672}