diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2018-01-25 16:08:20 -0600 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2018-01-26 15:53:59 -0600 |
commit | e97a8cefe8a7f575c427d9bcadbd245e31c09465 (patch) | |
tree | f985d921754874abedea1f0fb57fb2200e0ecf0a /src/lib/ecore_wl2/ecore_wl2_buffer.c | |
parent | ebcce5aefaef99e843e8324caf863b31f3b653d9 (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.c | 8 |
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 | ||
691 | EAPI int | ||
692 | ecore_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 | |||
691 | static Ecore_Wl2_Buffer * | 699 | static 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 | { |