summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_surface.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_surface.c
parente97a8cefe8a7f575c427d9bcadbd245e31c09465 (diff)
ecore_wl2: Add buffer_age_set and use it in surface code
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_surface.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_surface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_surface.c b/src/lib/ecore_wl2/ecore_wl2_surface.c
index 08a62076b5..acfcf896c3 100644
--- a/src/lib/ecore_wl2/ecore_wl2_surface.c
+++ b/src/lib/ecore_wl2/ecore_wl2_surface.c
@@ -106,7 +106,7 @@ _evas_dmabuf_surface_wait(Ecore_Wl2_Surface *s)
106 106
107 best = ecore_wl2_buffer_create(ewd, s->w, s->h, s->alpha); 107 best = ecore_wl2_buffer_create(ewd, s->w, s->h, s->alpha);
108 /* Start at -1 so it's age is incremented to 0 for first draw */ 108 /* Start at -1 so it's age is incremented to 0 for first draw */
109 best->age = -1; 109 ecore_wl2_buffer_age_set(best, -1);
110 s->buffers = eina_list_append(s->buffers, best); 110 s->buffers = eina_list_append(s->buffers, best);
111 } 111 }
112 return best; 112 return best;
@@ -128,7 +128,7 @@ _evas_dmabuf_surface_assign(Ecore_Wl2_Surface *s)
128 */ 128 */
129 WRN("No free DMAbuf buffers, dropping a frame"); 129 WRN("No free DMAbuf buffers, dropping a frame");
130 EINA_LIST_FOREACH(s->buffers, l, b) 130 EINA_LIST_FOREACH(s->buffers, l, b)
131 b->age = 0; 131 ecore_wl2_buffer_age_set(b, 0);
132 return 0; 132 return 0;
133 } 133 }
134 EINA_LIST_FOREACH(s->buffers, l, b) 134 EINA_LIST_FOREACH(s->buffers, l, b)
@@ -149,7 +149,7 @@ _evas_dmabuf_surface_post(Ecore_Wl2_Surface *s, Eina_Rectangle *rects, unsigned
149 149
150 s->current = NULL; 150 s->current = NULL;
151 ecore_wl2_buffer_busy_set(b); 151 ecore_wl2_buffer_busy_set(b);
152 b->age = 0; 152 ecore_wl2_buffer_age_set(b, 0);
153 153
154 ecore_wl2_window_buffer_attach(s->wl2_win, b->wl_buffer, 0, 0, EINA_FALSE); 154 ecore_wl2_window_buffer_attach(s->wl2_win, b->wl_buffer, 0, 0, EINA_FALSE);
155 ecore_wl2_window_damage(s->wl2_win, rects, count); 155 ecore_wl2_window_damage(s->wl2_win, rects, count);