overlay: Remove unnecessary lock.

Remove the unnecessary lock used in setter and getter of external.

Change-Id: If752c212e4c28a81db5c6957d0e751444e23ff93
libhwcomposer: Don't count video layers marked for SKIP

When YUV layers are marked for SKIP, it needs to be composed by
SurfaceFlinger. No need for tracking them in HWC

Change-Id: I4c8ca9710b709b9df9dcb6867681387b7507e14c
hwc: Don't use MDP for buffers of width less than 5

This is a software workaround for MDP hardware limitation where
DSI mode panels wont give more than 30 FPS if buffers in RGB
pipes are of width less than 5

MDP can't handle layers of width less than 3. Fail MDP
Composition for those frames.

Change-Id: If45efab19817ea9e724fd2857fcc1c5d98ce0eab
display: Don't enable pixel repeat for YUV buffers

 * This can cause horrible things to happen on msm8660 like clock rates
   going to a zillion hz, hard lockups, artifacts, and the smell of
   fresh ozone in the air. Don't do it.

Change-Id: Ic3b8541fc149c593e46ca5ed0c1ee14cab6af71a
libhwcomposer: Only 4 pipes can be used per display for MDP Comp.

Although 6 pipes are available in total but only up to 4 pipes are
available per display (single mixer) for MDP Composition.

CRs-Fixed: 450985

Change-Id: I99df91ab955a1a7110dfbea2aaf790ba26058a78
liboverlay : Update magnification limit for MDP 400

Update liboverlay to address magnification limit for MDP 400.

MDP 400 has magnification limit of 8, and MDP 410 or later has a
magnification limit of 20.

CRs-Fixed: 413535
(cherry picked from commit df48275230f359af834d7292518aac2566aff524)

Conflicts:

	liboverlay/overlayCtrl.cpp
	liboverlay/overlayUtils.cpp

Change-Id: I809460080c467d60279aacdbd1e46e094a1fd525
hwc: Only perform the yuv+composition workaround on MDP < 4.2

Change-Id: Ie69376b282b9eda58b0e8e010ead14b31367c1a0