Revert legacy egl hacks

  * As far as I know none of these are  needed now.

Revert "hax: Split the exynos4/tegra legacy code paths"

This reverts commit 77b4b5cb0cd636dd1ea8546266cdbf2ca2801320.

Revert "DisplayDevice: Backwards compatibility with old EGL"

This reverts commit ebba634a0774239c27d46faa0d5a974da21f3d31.

Conflicts:
	services/surfaceflinger/Android.mk

Revert "Rework BOARD_EGL_NEEDS_LEGACY_FB implementation"

This reverts commit 35b7dd9b6b1df3622cf123ce307b45e9f0f49568.

Change-Id: I6da0d21533c24e512cf3a466477d2261258ba893
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
frameworks/native: Add support for Secure Display

- Add secure UI layers to primary and remove other layers from
  internal and external list for Secure Display usecase.
- Dont let secure UI layers to be captured on screen

Change-Id: Iebdad5c56247308604ee90928f6d6460a1f69279
[2/2] Speed up booting on multicore devices.

Add multithreading support.

Change-Id: I13630de9d75d13c0368d261b3564b787067b65b1
SurfaceFlinger: Change to support framebuffer flip for 2D blitters

- Surfaceflinger does not flip framebuffers when there are
  no layers marked for HWC_FRAMEBUFFER
- This change checks for the HWC_BLIT flag and will request a flip
  to a new FB_TARGET buffer even if there are no FRAMEBUFFER layers

Change-Id: I1cb44389a05c9ec049d7f0d39c288feccb11a91c
SF: Avoid wormhole clear for BLIT calls

Do not call GPU clear from SF when composition
type is BLIT as it'll be taken care in HAL.

Change-Id: Ia613eb9b824c6484ecc8c8fa4ee883545d8541b8
surfaceflinger: Apply bugfixes to the correct hwc code paths

Changes I2deaf2ed101e8ea76708862a6bb67751b6078794 and
I1cb44389a05c9ec049d7f0d39c288feccb11a91c, both meant to deal
with corner-case layer states, were mistakenly merged into
the pre-1.0-hwc code paths. Move them to their intended locations

Change-Id: Idd6b3513cc36dda21b552eee97f9ea91793df18f
libgui: Add native window attributes to query usage

This is required to enable GL libraries to query usage
native window attributes to enable/disable tile rendering.

Change-Id: If752fa26ac3d8ffd7776cc5a16fe162af0742df5
SF: Block gpu rendering for virtual display widevine level3

In MPD3 we are using the widevine level3 for secure content
display. And this should applicable only for primary display
not for screen shot or screen recording.

CRs-Fixed: 595469
Change-Id: I99be2d81287ab746d5c4a2375c3106c59e61a8fc
Forward-port surface dithering from CM10.2

This allows the use of 16-bit color displays without excessive color
banding;

Change-Id: Icb469b9cb4beb686516c60bb576dbd0a73f505e0
libgui: Bring back support for mHeap-based screenshots

Older graphics libraries throw a hissy fit when trying to lock
buffers for Surface-based screenshots, on at least Tegra2/3 and
Exynos4 hardware.

This patch depends on the BOARD_USE_MHEAP_SCREENSHOT board flag
and requires the ro.bq.gpu_to_cpu_unsupported property set to 1
in order to work.

Change-Id: I7db955e2cdd120018e349c14290e975788e70ed3
Revert "Sensor: Add RotationVectorSensor2"
  * No one uses this?
This reverts commit 8cfc96871c2e8e42d5b50f8a0b5a48d9637d11da.

Change-Id: I93262ab2ad852d7dc59edf9877003e973bdd061f
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Do not just silently fail if surface creation fails

Some apps do not check if they actually got a surface (e.g. bootanimation)
So this helps the track crashes down to the cause.

Change-Id: I6e74bdb52ad7ebe260b0ec1777c585781f6bbd42
Merge commit 'refs/changes/04/4104/3' of https://gerrit.slimroms.net/SlimRoms/frameworks_native into HEAD
Merge remote-tracking branch 'Slim/kk4.4' into slim4.4