summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_buffer.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-01-25 16:11:01 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-01-26 15:53:59 -0600
commit7d81a16cdbb9a19748fad95cac54ac6022e607f0 (patch)
treecfdf11bd00352b31c2d9837cfb1e8f3908ae5d35 /src/lib/ecore_wl2/ecore_wl2_buffer.c
parentdce3fcda866439750eaa9c82f05c2bfb059d14dc (diff)
ecore_wl2: Add buffer age inc and use it in surface code
Technically not necessary, since we could do this with get and set, but it's a little more convenient to the user this way.
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_buffer.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_buffer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index 1a5769c821..eefb0e91f3 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -703,6 +703,14 @@ EAPI void ecore_wl2_buffer_age_set(Ecore_Wl2_Buffer *buffer, int age)
703 buffer->age = age; 703 buffer->age = age;
704} 704}
705 705
706EAPI void
707ecore_wl2_buffer_age_inc(Ecore_Wl2_Buffer *buffer)
708{
709 EINA_SAFETY_ON_NULL_RETURN(buffer);
710
711 buffer->age++;
712}
713
706static Ecore_Wl2_Buffer * 714static Ecore_Wl2_Buffer *
707_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha) 715_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha)
708{ 716{