wayland_shm: Remove surface damage function
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 10 Nov 2017 19:40:22 +0000 (13:40 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 10 Nov 2017 19:43:45 +0000 (13:43 -0600)
This is now in ecore_wl2

src/modules/evas/engines/wayland_shm/evas_engine.h
src/modules/evas/engines/wayland_shm/evas_outbuf.c

index 3744599..9795b15 100644 (file)
@@ -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
index 8cdd70d..6287a9c 100644 (file)
@@ -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)
 {