DisplayDevice: Backwards compatibility with old EGL

From 4.1 to 4.2, the display subsystem was reworked to
use SurfaceTextureClient/BufferQueue instead of
FramebufferNativeWindow for the framebuffer itself.

Unfortunately, some legacy EGL libraries make assumptions
that any framebuffer device will be FramebufferNativeWindow.

These EGL libraries will fail when used in 4.2 as if the
framebuffer is not FramebufferNativeWindow, they will
try to dequeue more than one buffer at a time, which
will cause a hang of the graphics subsystem.

This allows use of FramebufferNativeWindow to keep
legacy EGL implementations happy.  Confirmed EGL
implementations that need this include but are
not limited to:

Set BOARD_EGL_NEEDS_LEGACY_FB to use

Tegra2/3 ICS EGL
Mali400 ICS EGL (Allwinner A10)
Mali400 Jellybean (4.1) EGL (Samsung Exynos4)

Original implementation by OndraOrg of XDA:
http://forum.xda-developers.com/showpost.php?p=34469675&postcount=19

Change-Id: I74005cf6753b3c9bfb4c1e32fb641f5167787917
sf: virtual display clean up

  Since HAL allows Virtual devices, remove virtual display id
  check during setup of virtual display.

Change-Id: I6ec93c0f06842b69e6677f05ae8b45fb1f4225f6
surfaceflinger: enable EGL_NEEDS_FNW for qcom legacy

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ia6df94e8380062d646e29f293e5dc768e8a138e7
frameworks_native: Add back PixelFormatInfo

Change-Id: Id911a534c038311b69438c4171a523ccb1b29d99
C++11 Fixes.
fix hardware issues in capri based devices

[PATCH 1/4] binder: add compat symbols

Required for libtvservice_binder.so on I9082

[PATCH 2/4] SurfaceFlinger: ifdef EVENT_ORIENTATION

Some HWC implementation spam the log on unknown event

[PATCH 3/4] sf: add CAPRI_HWC compatibility

[PATCH 4/4] sf: CAPRI_HWC: fix rotation artifact

All this required for capri based devices.

Change-Id: Ib6b6a4563c6d6c5e142aa987889553772fcec891
C++11 string literal fixes.

GCC 4.9 now just throws errors on these rather than warning like previous GCCs.
sensorservice: Build with Clang.
Add libpng include path

 Forward compatibility change

Change-Id: Iae792715d9a9aea34f53cd6383981371835c4a31