wayland_shm: Remove surface damage function

This is now in ecore_wl2
This commit is contained in:
Derek Foreman 2017-11-10 13:40:22 -06:00
parent fe41727bc3
commit 6ea82f9f7e
2 changed files with 0 additions and 19 deletions

View 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

View 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)
{