graphics: Add directives for compatibility with older EGL blobs (2/2)

Port from CM9.
Original author Ricardo Cerqueira (commit
fc496c0607d0d2863ff9587019e890ab806ea49d)

Change-Id: If30f10f1d4b26547d1219e2ba05f6a831b8fbff8
libui

Change-Id: I1f449b21aaa6384580ded2560d804087610f3a19
Always return true for eglSwapBuffers

Change-Id: I1940f0b9062856a69958372635dee207288cbf99
EGL_ALWAYS_ASYNC

Change-Id: I539ae83385a572c4599f482ff9dca3d39128e76e
SurfaceTexture: dequeueBuffer hack for older EGL blobs

Port from CM9

If MISSING_GRALLOC_BUFFERS is defined (i.e., we're already hacking
around the lack of native buffers), allow retrying buffer dequeues
when the operation returns an error.
Based on work by "rapmv78" at xda-developers
(http://forum.xda-developers.com/showpost.php?p=20342919&postcount=1)

Change-Id: I5b1584b583a3a48ceca058f4d7113af3787aba7a
surfaceflinger: Add support for LGE's HDMI rotation

Use BOARD_USES_LGE_HDMI_ROTATION to align the HDMI output orientation
with the device's, on LGE phones (p990/p999, at least)

Change-Id: I69b9d5de2449df915710f1e2a6df8dcf6a04d06a
ALLOW_DEQUEUE_CURRENT_BUFFER

Change-Id: Idf55b178b3e26c9a2e527db8df566cc3462c98f8