wayland-shm: remove _evas_shm_surface_swap()

Summary: It no longer does anything useful

Reviewers: zmike, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2886
This commit is contained in:
Derek Foreman 2015-07-30 11:44:39 -04:00 committed by Chris Michael
parent ec48df78c3
commit f59f83810c
3 changed files with 0 additions and 19 deletions

View File

@ -79,7 +79,6 @@ struct _Shm_Surface
int w, h;
int dx, dy;
int num_buff;
int last_buff;
int curr_buff;
Shm_Leaf leaf[MAX_BUFFERS];
@ -120,7 +119,6 @@ struct _Outbuf
Shm_Surface *_evas_shm_surface_create(struct wl_shm *shm, struct wl_surface *surface, int w, int h, int num_buff, Eina_Bool alpha);
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_swap(Shm_Surface *surface);
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);

View File

@ -164,9 +164,6 @@ _evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *rects EINA_UNUSED, Evas_Render_Mode
_evas_shm_surface_redraw(ob->surface, result, n);
/* force a buffer swap */
_evas_shm_surface_swap(ob->surface);
/* clean array */
eina_array_clean(&ob->priv.onebuf_regions);
@ -248,9 +245,6 @@ _evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *rects EINA_UNUSED, Evas_Render_Mode
}
_evas_shm_surface_redraw(ob->surface, result, n);
/* force a buffer swap */
_evas_shm_surface_swap(ob->surface);
}
}

View File

@ -404,17 +404,6 @@ _evas_shm_surface_reconfigure(Shm_Surface *surface, int dx, int dy, int w, int h
}
}
void
_evas_shm_surface_swap(Shm_Surface *surface)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
surface->last_buff = surface->curr_buff;
surface->dx = 0;
surface->dy = 0;
}
void *
_evas_shm_surface_data_get(Shm_Surface *surface, int *w, int *h)
{