surfaceflinger: Enable dithering if persist.sys.use_dithering=1|2

* Fixes color banding(1) and blur effect(2)

0: surface doesn't need dithering
1: enable dithering if necessary (default)
2: enable dithering (always)

Change-Id: Icda52b0b11ed3e2fa0db769d581582c23beb90fd
Add Samsung OMX and Color Format support (1/2)

Change-Id: I842e5a84a81bdb39234162cdc262d9ce6ba2688e
MemoryHeapBase: ifdef for gingerbread/froyo compatibility

Allow to "revert" by a board config flag the offset member addon
see commit f24c4cd0f20 (aosp change id Ie618fb5c0718e)

This change is required to use overlay based proprietary camera libs
coming from gingerbread and froyo builds.

This change also requires a global cflag named BINDER_COMPAT
because a lot of modules use the MemoryHeap includes

Add this in your BoardConfig.mk :
COMMON_GLOBAL_CFLAGS += -DBINDER_COMPAT

Backported from /#/c/13317/

Change-Id: I2e5c10d3cd9584803dd282aa17650661d6499e5b
Revert "get rid of MemoryHeapPmem"

This reverts commit 7a7524810a0950c1c2b18014a8f1c637275165c4 and
makes MemoryHeapPmem conditioned to BOARD_NEEDS_MEMORYHEAPPMEM

Change-Id: I2f38340984ba87d6970d17ec944e3faded4132c8
binder: add support for Ion

Add classes to allocate from the Ion memory manager.

Change-Id: I72ad0c95a06c47a5d7441f7f699ba1462e1b8632

binder: Get rid of old flag

MAP_LOCKED_MAP_POPULATE is an outdated flag that is not used
anymore. Get rid of this flag in MemoryHeapIon

Change-Id: Ib43d2a413f5177b98a66bf3ef1476db8caef56cd
surfaceflinger: fix filter for samsung omx patches

Currently, any device that doesn't have TARGET_SOC
defined is broken.

Change-Id: I573e770b1857706773186ab6879c4c572f6115dd
CleanSpec to rebuild surfaceflinger dependencies

Change-Id: If5710989631b761592da15b07acaa738588a9c56
libs/ui: Add support for triple framebuffers

Change-Id: I90dd38deeeda9a3785b87286cc7d252c6f948750
native: Add Tile format to OMX_IVCommon

Change-Id: I2b1fac62651fabe3338246d6b28057854f390a10
native: add support for color-converter

Defines interfaces to interact with mm-color-converter
wrapper class.

Change-Id: Iff2926e553442fca72d9f30a89b5b7177d7a870b
native : Add Yamato format to OMX_IVCommon

- Add Yamato format to OMX_IVCommon

Change-Id: Ifd51eb74a0ade99bef63ccaefa055a8d6943ce0f
native: fix FB compilation

Change-Id: Ib52cfe6c2a9f7dc45ffcc0dbe98e870bded32381
SurfaceFlinger: send the orientation information to HWC

Change-Id: I04a30d472ac2d12706b8d82b4bb433598482454d
CRs-fixed: 382796
frameworks/native: Add support for external-only layers.

Add support for external-only layers, used for dual-display
or closed captions.
Do not draw external-only layers.

Change-Id: Ieeb945d8a01f16a61a40433aa388a7c7822dcc8a
SurfaceTexture: Add support for drawing non-GPU supported buffers.

Add support for drawing buffers which are not supported by the GPU.
These buffers are drawn using the overlay or C2D. During rotation,
when the draw operation is performed, the GPU clears the clip region
for this buffer.

Change-Id: I7e7abef68ef5aefddaf1596979819ddd66be3681
binder: libsamsungion goes libsecion

Change-Id: I40024b0611ee7f938e238a64e5ee1626f308f0da
native/libs/ui: Adding fix for conf 2.0 seg faults

function call to cancelBuffer was resulted in seg-faults on conf 2.0.
Setting function pointer of cancelBuffer to null in order to select
correct path of execution.
CRs-fixed: 383715

Change-Id: Ic560bf2e19fe22812dacfca1a54148076cc98b13
frameworks/native: fix copy back dirty region

Copyback dirty region logic does copyback,
even when its not necessary causing 2ms delay.
Fix the logic to copy back only what is necessary.

Change-Id: I52de68258ac9f87d704ee5401f93417805fa6773
FramebufferNativeWindow: Fix locking

* No locking needed for query.
* Postpone locking until after fb_post returns

Change-Id: I214afddc1f32295c9fb625d07b27a9d98999859e
Add support for custom buffer sizes.

Add native window properties NATIVE_WINDOW_SET_BUFFERS_SIZE to the
perform function of SurfaceTextureClient to set the user defined size
of graphic buffers.

Change-Id: I1dc2203990a3641fbb9ddab9a86f7e9017f05270