From: Derek Foreman Date: Thu, 30 Jul 2015 15:44:49 +0000 (-0400) Subject: wayland-shm: rename _evas_shm_surface_redraw() to _evas_shm_surface_post() X-Git-Tag: v1.15.0~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2f5d240a4802da989008c82497c40a322a7ff58;p=platform%2Fupstream%2Fefl.git wayland-shm: rename _evas_shm_surface_redraw() to _evas_shm_surface_post() Summary: It doesn't redraw anything, it posts a buffer full of data to the compositor. Reviewers: zmike, devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2887 --- diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.h b/src/modules/evas/engines/wayland_shm/evas_engine.h index c55c860..72d071a 100644 --- a/src/modules/evas/engines/wayland_shm/evas_engine.h +++ b/src/modules/evas/engines/wayland_shm/evas_engine.h @@ -120,7 +120,7 @@ Shm_Surface *_evas_shm_surface_create(struct wl_shm *shm, struct wl_surface *sur void _evas_shm_surface_destroy(Shm_Surface *surface); void _evas_shm_surface_reconfigure(Shm_Surface *surface, int dx, int dy, int w, int h, int num_buff, uint32_t flags); void *_evas_shm_surface_data_get(Shm_Surface *surface, int *w, int *h); -void _evas_shm_surface_redraw(Shm_Surface *surface, Eina_Rectangle *rects, unsigned int count); +void _evas_shm_surface_post(Shm_Surface *surface, Eina_Rectangle *rects, unsigned int count); Outbuf *_evas_outbuf_setup(int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, struct wl_shm *shm, struct wl_surface *surface); void _evas_outbuf_free(Outbuf *ob); diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c index 7d01c52..d78c88b 100644 --- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c @@ -162,7 +162,7 @@ _evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *rects EINA_UNUSED, Evas_Render_Mode EINA_ARRAY_ITER_NEXT(&ob->priv.onebuf_regions, i, rect, it) result[i] = *rect; - _evas_shm_surface_redraw(ob->surface, result, n); + _evas_shm_surface_post(ob->surface, result, n); /* clean array */ eina_array_clean(&ob->priv.onebuf_regions); @@ -244,7 +244,7 @@ _evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *rects EINA_UNUSED, Evas_Render_Mode i++; } - _evas_shm_surface_redraw(ob->surface, result, n); + _evas_shm_surface_post(ob->surface, result, n); } } diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c index 8a2e604..a6d90be 100644 --- a/src/modules/evas/engines/wayland_shm/evas_shm.c +++ b/src/modules/evas/engines/wayland_shm/evas_shm.c @@ -442,7 +442,7 @@ _evas_shm_surface_data_get(Shm_Surface *surface, int *w, int *h) } void -_evas_shm_surface_redraw(Shm_Surface *surface, Eina_Rectangle *rects, unsigned int count) +_evas_shm_surface_post(Shm_Surface *surface, Eina_Rectangle *rects, unsigned int count) { struct wl_callback *frame_cb; Shm_Leaf *leaf;