wayland-shm: Assign buffers in the swap_mode callback

Summary:
This is when we're about to start a new render, so it's the best
time to set up the next buffer to draw to.

Reviewers: zmike, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2892
This commit is contained in:
Derek Foreman 2015-07-30 11:45:32 -04:00 committed by Chris Michael
parent ebea504cbc
commit 997e84f14e
2 changed files with 2 additions and 2 deletions

View File

@ -255,6 +255,8 @@ _evas_outbuf_swap_mode_get(Outbuf *ob)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!_evas_shm_surface_assign(ob->surface)) return MODE_FULL;
/* This was broken, for now we just do full redraws */
return MODE_FULL;

View File

@ -426,8 +426,6 @@ _evas_shm_surface_data_get(Shm_Surface *surface, int *w, int *h)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_evas_shm_surface_assign(surface);
if (w) *w = 0;
if (h) *h = 0;