egl/dri2: move surface refcounting out of the platform code
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 16 Aug 2016 12:04:37 +0000 (13:04 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:16:05 +0000 (12:16 +0100)
commit8fb9ea413de31cc6a95ac4c38215b621de728687
tree01b19e62da5d6cad31f25ce49584180902859674
parent02f1158746425617a5e4f5bff4575d7c416d6978
egl/dri2: move surface refcounting out of the platform code

All the platforms are duplicating what should be a driver/dri2 thing -
refcounting. Just fold it accordingly.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_surfaceless.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c
src/egl/drivers/dri2/platform_x11_dri3.c