egl/android: Fix build for Jelly Bean (v2)
authorChad Versace <chad.versace@linux.intel.com>
Thu, 20 Dec 2012 22:16:50 +0000 (14:16 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Wed, 2 Jan 2013 22:55:36 +0000 (14:55 -0800)
commitbfe28b8d938c4082e9334e4ccaf423fcd1625154
tree4ef94671c841ddeb0600f506dcfa30dfe5dc2481
parent56c6cdc9e71771d0fcdecabbe62d45a36f2d03b4
egl/android: Fix build for Jelly Bean (v2)

In Jelly Bean, the interface to ANativeWindow changed. The change included
adding a new parameter the queueBuffer and dequeueBuffer methods,
removing the lockBuffer method, and requiring libsync.

v2:
  - s/fence_fd == -1/fence_fd != -1/
  - Fix leak. Close the fence_fd.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/egl/drivers/dri2/platform_android.c
src/egl/main/Android.mk