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
This commit is contained in:
Derek Foreman 2015-07-30 11:44:49 -04:00 committed by Chris Michael
parent f59f83810c
commit d2f5d240a4
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}
}

View File

@ -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;