Fixed sample video corrupted in MediaCodec mode.

Change-Id: Ibe11a83199f3db1ba6266a1a9e11c7fc24ceb554
related-to-bug: 6732061
merge in jb-release history after reset to jb-dev
EGL: Rework adreno 130 workaround to support update egl_display. Tested
on heroc with msm7525 with adreno 130.

Change-Id: Ifa41807ce493650f30ef7983650776ed6bfa9a5c
BufferQueue: Increase MIN_UNDEQUEUED from 2 to 3.

If 2 queueBuffers happen fairly closely, the former buffer is not picked by
display. But SurfaceTexture won't return this to clients, since its not the
oldest. It will return the locked buffer causing deadlock.

Increasing the min_dequeued buffer count to 3 (from 2) will increase the
distance between video and display by 1 more.

CRs-fixed: 382393

Change-Id: I275c01473c7057714da35693dfda7a358e9d9285
Revert "BufferQueue: Increase MIN_UNDEQUEUED from 2 to 3."

This reverts commit 20953e87a4da8d9645adc9b984ef16480a7bb0fe.
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
surfacetexture: Add API to set the min undequeued buffer count

 * Needed if we want to globally raise the value to reduce jank. Too
   many buffers causes issues for camera drivers.
 * Change the value back to 3 globally for QCOM targets.

Change-Id: Ifc553fc0ea622974f773550799970b37e80a7c96
SF::Call qcomuiClearRegion() method for mdp composition

Change-Id: I2c36aeea1a71312e1fbd5b56a14c8c183719a8ba
CRs-Fixed: 383115
Fix makefile from the previous commit

Change-Id: Ia245a408cf02ee0d1968bbc05ac181fe1129b9ce
native: Add custom 32-aligned NV12 colorformat

Change-Id: If00faad5b155e8be70ffb48b01992bdf86165dc8
Revert "surfacetexture: Add API to set the min undequeued buffer count"

This reverts commit 7523410a5d3721e84fe96464ff2cf61482137c58.

Revert "Allow 3+ undequeued buffers for SurfaceTextureLayer"

This reverts commit 3c77f875627a504ec8e52a341ce654a4e16a3838.
native: use standard cm qcom ifdef

Change-Id: I35d7ba187a46af840253ec5b5c93df888546ce65
SurfaceFlinger: update sourceTransform in hwc_layer_t

set the sourceTransform in hwc_layer_t to the bufferOrientation,
which will be used for setting the orientation on external display

CRs-fixed: 387357
Change-Id: I7ae6a818001eb41a9209dea166dc9232de182fe5
(cherry picked from commit 608db1fa7aa4dee3fc0359bd5686a74e2dfc9d40)
frameworks/native: SF: Adapt vertices to GL co-ordinates

Adapt co-ordinates in drawWormhole() from display co-ordinate system to
GL co-ordinate system.

Change-Id: Id25a9e63c38ceb242f6d67eaca9e88cb95aead42
CRs-Fixed:382824
SurfaceFlinger: Removal of NO_RGBX_8888 flag for OMAP3

Removing this will allow color format of surface to be set for RGBX8888
that can improve performance for 32 bit framebuffer.

Tested on Nook Color with CM10
TI's commit can be found here:
review.omapzoom.org/#/c/21374/3

This will also remove the need to have BOARD_NO_RGBX_8888 := true
in the BoardConfig.mk

Change-Id: Ibc6e56c992a6433bc8688d88471d4feb9084278c
libgui: Add support to update buffer geometry.

Add native window properties NATIVE_WINDOW_UPDATE_BUFFERS_GEOMETRY
to the perform function of SurfaceTextureClient and SurfaceTexture
to update the width, height and format of the buffer dynamically
from the client before queue buffer call.

Change-Id: I62447fcf523b507d534085cd0835f55a978c4ead
Fix gralloc private flag for video playback

Change-Id: I5247adffd528fbabbe57de56e1ac1e5ae74662af
i9300: Clean up a bit usage flag hack

Change-Id: I355375e5d65381b4a256dbf934dacf6b2b935b98
frameworks/native: Add support for copybit in Surfaceflinger.

  - Use qcomuiclearRegion to punch hole in FB if using
    copybit composition
  - Skip GPU drawing if layers are flagged for copybit
  - Consider copybit composition while counting for
    layers updating FB

Change-Id: Ieb2937d276a5018916961b43850898066a15c17e
Merge "i9300: Clean up a bit usage flag hack" into jellybean