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:08:20 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-01-26 15:53:59 -0600
commite97a8cefe8a7f575c427d9bcadbd245e31c09465 (patch)
treef985d921754874abedea1f0fb57fb2200e0ecf0a /src/lib/ecore_wl2/ecore_wl2_buffer.c
parentebcce5aefaef99e843e8324caf863b31f3b653d9 (diff)
ecore_wl2: Add buffer_age_get API and use it in surface code
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 dfd63a8a1a..f9a633f629 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -688,6 +688,14 @@ ecore_wl2_buffer_busy_set(Ecore_Wl2_Buffer *buffer)
688 buffer->busy = EINA_TRUE; 688 buffer->busy = EINA_TRUE;
689} 689}
690 690
691EAPI int
692ecore_wl2_buffer_age_get(Ecore_Wl2_Buffer *buffer)
693{
694 EINA_SAFETY_ON_NULL_RETURN_VAL(buffer, 0);
695
696 return buffer->age;
697}
698
691static Ecore_Wl2_Buffer * 699static Ecore_Wl2_Buffer *
692_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha) 700_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha)
693{ 701{