Overlay support for legacy camera libs

Move http://review.cyanogenmod.com/#/c/13285/ to proper place for jellybean.

1. Rename OverlayHtc to Overlay in file names
2. Use BOARD_USES_LEGACY_OVERLAY to enable

Signed-off-by: Evan McClain <aeroevan@gmail.com>
Change-Id: Ib6afd1b610b1d3e263fcaa38585e7a1116baaf58
Allow 3+ undequeued buffers for SurfaceTextureLayer

 * Eliminates launcher jank on QCOM hardware.
 * Original patch from QCOM that set this to 3 globally uses too much
   memory in places where it's not really needed such as camera.

Change-Id: I0153f981a3645f22fdb61b6ea38eeacb3eaf65de
frameworks/native: surfaceflinger: Do not wait for vsync for MDP Composition

SurfaceFlinger waits for next vsync cycle if a frame
is available from client. For MDP 3.0 targets, we wait
for vsync cycle in every composition step. If a frame
if available from client just after vsync, we would delay
it showing on display by one vsync cycle also making client
wait in DQ. As MDP composition waits for vsync, remove wait
for vsync in composition step when in MDP Composition.

Change-Id: If0054e8efc9fcfb8c621f45f130e054a799703c4
SF/HWC: Disable Vsync for copybit layer only

(cherry picked from commit a546a9970674730e734fbf2fd59982c746b73667)

Change-Id: I09a71927e55c95c790e92ed9bce88447d59be267
surfaceflinger: Add all display connections to connection list.

1. Revert "surfaceflinger: Remove deadlock condition."
   This reverts commit 3924ab90a956b15610f45e229e051756c94ba1b8.
2. Add all display event connections to connection list to avoid
   deadlock condition.

Conflicts:

	services/surfaceflinger/EventThread.cpp

Change-Id: Ia65e217a5130572d0724d3c4fd9f2e962c0ffb50
(cherry picked from commit 5aec1edc1f4fa0562d379b5c85a1c9de943b7087)
CRs-Fixed: 421346