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
Merge "libgui: Bring back support for mHeap-based screenshots" into cm-11.0
surfaceflinger: don't handle EVENT_ORIENTATION when !HWC_DEVICE_API_VERSION_1_0

a184463 causes segfault on boot for the enrc2b (and probably others), this fixes it.

Change-Id: Ic4a7a05b44c8cc44a0d25c56def4acdf5b0939df
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: Bring back support for mHeap-based screenshots

Summary:
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

Merge "libgui: Bring back support for mHeap-based screenshots" into cm-11.0

surfaceflinger: don't handle EVENT_ORIENTATION when !HWC_DEVICE_API_VERSION_1_0

a184463 causes segfault on boot for the enrc2b (and probably others), this fixes it.

Change-Id: Ic4a7a05b44c8cc44a0d25c56def4acdf5b0939df

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

Merge remote-tracking branch 'cm/cm-11.0' into merge_cm

Test Plan: build, test, merge. Haven't even built yet. just throwing it out there

Reviewers: synergy, anders3408, jriordan001, raymanfx, donald.munn

Differential Revision: http://review.codefirex.com/D217
installd: squashed revert of unintentional patches from CM

These reverts fix an issue with installing some applications.

commit 6f50eb0be2d75ade847008bfe43844745490cea6
Author: synergy dev <synergye@codefi.re>
Date:   Wed Jan 8 04:29:58 2014 -0800

    Revert "DexOpt anything on /system in /cache/dalvik-cache"

    This reverts commit 4ff8448cc41eea749e59b316e456777b3d9ca1ed.

commit 8dc58cded68373bca2350c013cf9bca04b71d026
Author: synergy dev <synergye@codefi.re>
Date:   Wed Jan 8 04:29:42 2014 -0800

    Revert "installd: Delete cache properly for devices using datadata partition"

    This reverts commit 993b066366b2065c4b9de491f386c585207d4e02.

commit 0787f8bfd0c8071cb4684deda5a43cc2fae2c840
Author: synergy dev <synergye@codefi.re>
Date:   Wed Jan 8 04:29:26 2014 -0800

    Revert "installd: Invert the default for dexopt-on-cache"

    This reverts commit d018d2ecb3ee31bc549e6b43f8e6b5564569d63a.
Merge branch 'kk-devel-qcom_media' of https://github.com/codefireXperiment/frameworks_native into kk-devel