egl/android: Get gralloc module in dri2_initialize_android() (v2)
authorTomasz Figa <tfiga@chromium.org>
Thu, 10 Nov 2016 07:55:52 +0000 (16:55 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 21 Nov 2016 13:27:41 +0000 (13:27 +0000)
commit859d0b01217a0241a12a75899dcfb8263787f1ad
tree1d7099ff142404e109435c6b854e0eeb5f9aa328
parent925ff0b5341e0df494b647f02fbc136757fdd48e
egl/android: Get gralloc module in dri2_initialize_android() (v2)

Currently droid_open_device() gets a reference to the gralloc module
only for its own use and does not store it anywhere. To make it possible
to call gralloc methods from code added in further patches, let's
refactor current code to get gralloc module in dri2_initialize_android()
and store it in dri2_dpy.

v2: fixes from Emil's review:
 a) remove duplicate initialization of 'err'.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_android.c