summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_surface.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-01-26 13:31:28 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-01-26 15:54:00 -0600
commit01aac084d74f1d3332c5fc817f2c5449f5ba9bde (patch)
tree62b59448916da9f8c39b0d66599fb1b764579626 /src/lib/ecore_wl2/ecore_wl2_surface.c
parent288b693ac4ae132b7493d2081692c851c37c2038 (diff)
ecore_wl2: Use wl_buffer_get in dmabuf_surface_post
This is the final place where this code was reliant on internal structures, it now solely uses (beta) public api.
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_surface.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_surface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_surface.c b/src/lib/ecore_wl2/ecore_wl2_surface.c
index e110a2c86b..255188207b 100644
--- a/src/lib/ecore_wl2/ecore_wl2_surface.c
+++ b/src/lib/ecore_wl2/ecore_wl2_surface.c
@@ -153,6 +153,7 @@ _evas_dmabuf_surface_post(Ecore_Wl2_Surface *s, void *priv_data, Eina_Rectangle
153 Ecore_Wl2_Dmabuf_Private *p; 153 Ecore_Wl2_Dmabuf_Private *p;
154 Ecore_Wl2_Buffer *b; 154 Ecore_Wl2_Buffer *b;
155 Ecore_Wl2_Window *win; 155 Ecore_Wl2_Window *win;
156 struct wl_buffer *wlb;
156 157
157 p = priv_data; 158 p = priv_data;
158 159
@@ -167,7 +168,8 @@ _evas_dmabuf_surface_post(Ecore_Wl2_Surface *s, void *priv_data, Eina_Rectangle
167 168
168 win = ecore_wl2_surface_window_get(s); 169 win = ecore_wl2_surface_window_get(s);
169 170
170 ecore_wl2_window_buffer_attach(win, b->wl_buffer, 0, 0, EINA_FALSE); 171 wlb = ecore_wl2_buffer_wl_buffer_get(b);
172 ecore_wl2_window_buffer_attach(win, wlb, 0, 0, EINA_FALSE);
171 ecore_wl2_window_damage(win, rects, count); 173 ecore_wl2_window_damage(win, rects, count);
172 174
173 ecore_wl2_window_commit(win, EINA_TRUE); 175 ecore_wl2_window_commit(win, EINA_TRUE);