summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-06 17:01:16 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-08 15:12:44 -0600
commitd346ac7b2e609ed459148bf56cfd14bd6ecb8fbc (patch)
tree23b61e0ed5ad8ad9f85f2817e3f0c34727c44508
parent381bb0e7988a6d59f4527b971574ab044f052a51 (diff)
wayland_shm: Track size of buffer
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_dmabuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
index a956b6a2d1..813d7b2d92 100644
--- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
@@ -53,6 +53,7 @@ struct _Dmabuf_Buffer
53{ 53{
54 Dmabuf_Surface *surface; 54 Dmabuf_Surface *surface;
55 struct wl_buffer *wl_buffer; 55 struct wl_buffer *wl_buffer;
56 int size;
56 int w, h; 57 int w, h;
57 int age; 58 int age;
58 unsigned long stride; 59 unsigned long stride;
@@ -694,6 +695,7 @@ _evas_dmabuf_buffer_init(Dmabuf_Surface *s, int w, int h)
694 } 695 }
695 out->w = w; 696 out->w = w;
696 out->h = h; 697 out->h = h;
698 out->size = out->stride * h;
697 699
698 out->wl_buffer = _buffer_manager_buf_to_wl_buffer(s->surface->ob->ewd, out); 700 out->wl_buffer = _buffer_manager_buf_to_wl_buffer(s->surface->ob->ewd, out);
699 701