derekf pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=6ea82f9f7e8361fb9cfe162395a81f006e4f8da8
commit 6ea82f9f7e8361fb9cfe162395a81f006e4f8da8 Author: Derek Foreman <[email protected]> Date: Fri Nov 10 13:40:22 2017 -0600 wayland_shm: Remove surface damage function This is now in ecore_wl2 --- src/modules/evas/engines/wayland_shm/evas_engine.h | 1 - src/modules/evas/engines/wayland_shm/evas_outbuf.c | 18 ------------------ 2 files changed, 19 deletions(-) diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.h b/src/modules/evas/engines/wayland_shm/evas_engine.h index 3744599ed3..9795b159ca 100644 --- a/src/modules/evas/engines/wayland_shm/evas_engine.h +++ b/src/modules/evas/engines/wayland_shm/evas_engine.h @@ -152,7 +152,6 @@ int _evas_outbuf_rotation_get(Outbuf *ob); void _evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize); void *_evas_outbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx, int *cy, int *cw, int *ch); void _evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int y, int w, int h); -void _evas_surface_damage(struct wl_surface *s, int compositor_version, int w, int h, Eina_Rectangle *rects, unsigned int count); void _evas_outbuf_redraws_clear(Outbuf *ob); #endif diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c index 8cdd70da18..6287a9cbeb 100644 --- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c @@ -168,24 +168,6 @@ _evas_outbuf_idle_flush(Outbuf *ob) } } -void -_evas_surface_damage(struct wl_surface *s, int compositor_version, int w, int h, Eina_Rectangle *rects, unsigned int count) -{ - void (*damage)(struct wl_surface *, int32_t, int32_t, int32_t, int32_t); - unsigned int k; - - if (compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION) - damage = wl_surface_damage_buffer; - else - damage = wl_surface_damage; - - if ((rects) && (count > 0)) - for (k = 0; k < count; k++) - damage(s, rects[k].x, rects[k].y, rects[k].w, rects[k].h); - else - damage(s, 0, 0, w, h); -} - void _evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *surface_damage EINA_UNUSED, Tilebuf_Rect *buffer_damage EINA_UNUSED, Evas_Render_Mode render_mode) { --
