derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=77212021f3f9f43c1c87ef7a04d82bb44b556f31

commit 77212021f3f9f43c1c87ef7a04d82bb44b556f31
Author: Derek Foreman <[email protected]>
Date:   Fri Nov 10 13:33:46 2017 -0600

    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)
---
 src/modules/evas/engines/wayland_shm/evas_dmabuf.c | 5 +----
 1 file changed, 1 insertion(+), 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)
 static void
 _evas_dmabuf_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int 
count)
 {
-   struct wl_surface *wls;
    Dmabuf_Surface *surface;
    Dmabuf_Buffer *b;
    Ecore_Wl2_Window *win;
@@ -665,11 +664,9 @@ _evas_dmabuf_surface_post(Surface *s, Eina_Rectangle 
*rects, unsigned int count)
    b->age = 0;
 
    win = s->info->info.wl2_win;
-   wls = ecore_wl2_window_surface_get(win);
 
    ecore_wl2_window_buffer_attach(win, b->wl_buffer, 0, 0, EINA_FALSE);
-   _evas_surface_damage(wls, surface->compositor_version,
-                        b->w, b->h, rects, count);
+   ecore_wl2_window_damage(win, rects, count);
 
    ecore_wl2_window_commit(s->info->info.wl2_win, EINA_TRUE);
 }

-- 


Reply via email to