surfaceflinger: Add more ifdefs for secure display query

Commit f04661 forgot ifdefs in HWComposer.h that break ABI. This
broke at least grouper and endeavoru surfaceflinger.

Change-Id: I9a1bd4e1fb9a2ad5ac0a39e86ef8131b52526e32
surfaceflinger: Fix QCOM_BSP ifdef

Change-Id: Ie6bdb81385762a0b3b25e207bc4add3cdcf1e6fe
Revert "native: Fix QCOM_BSP_LEGACY cflags"

* This is unnecessary now that the flags are set in the build makefile

This reverts commit 7c38f6bf2fd19214146788f5b5b8cd587fa972fb.

Change-Id: I5c1042b762f84455c888bafe56c5a619952bfbba
frameworks/native: Remove unnecessary QCOM_BSP defines

* This is already provided by the build makefiles

Change-Id: I630f09850f6f66c8f3c501fa5fd78f5a15a3436f
libs: binder: MemoryHeapIon: ifdef ION_EXYNOS_VIDEO_MASK

Exynos secure memory regions were separated here:
https://android.googlesource.com/platform/hardware/samsung_slsi/exynos5/+/ce73ba1%5E!/

Only compile the legacy ION_EXYNOS_VIDEO_MASK code if legacy HALs are used
(and ION_EXYNOS_VIDEO_MASK is defined).

Change-Id: I8cb58bbbb829d64a2ed39dbd27cc0d0ae3c9dd09
binder: Don't include the compat symbols on arm64 binaries

... Since they're not the same when built at 64-bit, and the likelihood
of blobs requiring this are slim to none, just remove them

Change-Id: Ib4207055a9aadeb589a92b97a000f94cae270aa3
SurfaceFlinger: Make secure display ifdefs more narrow.

  * apq8084 target hals do not export display attrs
   the same as previous platforms (8974, 8960 etc)
   but continue the use of QCOM_BSP.
  * Due to this difference secure content is non-visible
   on apq8084 platforms because SF pushes the rendering
   to GLES vice the secure buffer of HWC and MDP.

Change-Id: Ie078638b1e22d1c9f73441e290c2882b4081b294
libEGL: allow devices to workaround Google bug 10194508

Most older blobs don't have the EGL_KHR_gl_colorspace
extension and need this workaround.

Change-Id: Ifc5d097c1a0b68275d23c2d191976ac96631b695
opengl: reduce PB size from 2MB to 512KB

this allows us to enable h/w acceleration on low-end
devices while keeping memory usage down.

Bug: 6557760
Change-Id: I8af2de3038dc2579360b8b73aa452cb7a0e506a9
Merge branch 'cm-12.0' of https://github.com/CyanogenMod/android_frameworks_native into HEAD
Forward port 'Swap volume buttons' (2/3)

[mikeioannina]: Adjust for 5.0 changes

Change-Id: I5ed4ae2b7e69e2ada067ed1d3524b3d3fad30e2e
Merge branch 'cm-12.0' of https://github.com/CyanogenMod/android_frameworks_native into lollipop