CM11 Themes: Pipe stderr from aapt to logcat.

This will allow users to see why aapt failed when installing a
theme.

Change-Id: I74314daae9e844dce2f4c3eeb6c78a40b5ad6357
libs/gui: Release acquired buffer when createImage fails

When EGL fails to create an KHR image for an acquired buffer,
release the buffer before returning with error. This unblocks
the dequeue buffer call waiting and may succeed in the next queue.

CRs-Fixed: 624244

Change-Id: I674807f4bb1f1253cb787daaa5a7adf351caaae7
(cherry picked from commit 9e9b12d7f37a6120a705db56a4374e7141c79a41)
Merge remote-tracking branch 'cm/cm-11.0' into cm11mod-linaro
PMem: fix c++11 narrowing for legacy PMem

The best fix for these narrowing
violations is to use static casting

Change-Id: I900b1ebb658fc9afbfbb4943faecce9d772285ac
Signed-off-by: DHOMD <DHO@dho.im>
OpenGL: Build with GCC for Adreno compatibility

Summary:
Clang treats const char type differently (view processed code to see).
For compatibility against Adreno prebuilts, we will build libopengl
and it's wrappers with gcc

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D86

Change-Id: Ia133533751ad3e4257a257a9e83813028525346d
binder: fix c++11 narrowing violations

Summary:
The best fix for these narrowing
violations is to use static casting

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D85

Change-Id: I7717f7b09b75167a7db979fef7212e00d0541051
Signed-off-by: DHOMD <DHO@dho.im>
surfaceflinger: Properly fix aliasing violations

Change-Id: I5eaaa57665a2b34eea9d42e0df77c6747332b04e