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:09:19 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-01-26 15:53:59 -0600
commitdce3fcda866439750eaa9c82f05c2bfb059d14dc (patch)
tree182f44f28e2c6f922e6b0d100dd6fdd94478ba63 /src/lib/ecore_wl2/ecore_wl2_buffer.c
parente97a8cefe8a7f575c427d9bcadbd245e31c09465 (diff)
ecore_wl2: Add buffer_age_set 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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index f9a633f629..1a5769c821 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -696,6 +696,13 @@ ecore_wl2_buffer_age_get(Ecore_Wl2_Buffer *buffer)
696 return buffer->age; 696 return buffer->age;
697} 697}
698 698
699EAPI void ecore_wl2_buffer_age_set(Ecore_Wl2_Buffer *buffer, int age)
700{
701 EINA_SAFETY_ON_NULL_RETURN(buffer);
702
703 buffer->age = age;
704}
705
699static Ecore_Wl2_Buffer * 706static Ecore_Wl2_Buffer *
700_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha) 707_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha)
701{ 708{