summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-04-08 13:24:22 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-04-19 15:11:09 -0400
commitf92c2d2330fc168e9ec611d6808fe5849b24edf2 (patch)
tree70472408a3d5e913dc11ad70b6f85bdd15bfefae /src/modules/evas/engines/wayland_shm/evas_shm.c
parent7c743b675401ecd268e946bdccdbdafc28f8d979 (diff)
wayland_shm: Return buffer age from shm_surface_assign
This makes refactoring the Surface abstraction a little easier.
Diffstat (limited to 'src/modules/evas/engines/wayland_shm/evas_shm.c')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index 22f3ec4988..6fd8153b1a 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -468,7 +468,7 @@ _evas_shm_surface_wait(Shm_Surface *surface)
468 return NULL; 468 return NULL;
469} 469}
470 470
471Eina_Bool 471int
472_evas_shm_surface_assign(Shm_Surface *surface) 472_evas_shm_surface_assign(Shm_Surface *surface)
473{ 473{
474 int i; 474 int i;
@@ -487,7 +487,7 @@ _evas_shm_surface_assign(Shm_Surface *surface)
487 surface->leaf[i].age = 0; 487 surface->leaf[i].age = 0;
488 } 488 }
489 } 489 }
490 return EINA_FALSE; 490 return 0;
491 } 491 }
492 492
493 /* Increment ages of all valid buffers */ 493 /* Increment ages of all valid buffers */
@@ -504,7 +504,7 @@ _evas_shm_surface_assign(Shm_Surface *surface)
504 } 504 }
505 } 505 }
506 506
507 return EINA_TRUE; 507 return surface->current->age;
508} 508}
509 509
510void * 510void *