Fixes & workarounds from AOSPA' frameworks/native

Revert "Revert "Compatibility work around for bad graphics driver dep…
sf: Don't do premultiplied alpha blending on the statusbar for hwc <=…
sf: Fix detection of 0.3 hwcomposer
Graphics:Add error check when create GraphicBuffer
SF: Avoid wormhole clear for BLIT calls
surfaceflinger: Apply bugfixes to the correct hwc code paths
SurfaceFlinger: Change to support framebuffer flip for 2D blitters
SurfaceFlinger: Enable Vsync trace for SF Composition
SurfaceFlinger: Add NULL check for buffer handling
libs/ui: Fix crash issue because of null pointer access
surfaceflinger: Update support for hwc < 1.0
Revert "remove support for HWC < 1.0"
sf: Always use opengles for screen capture
Support forcing all screenshots into a CPU consumer
Revert "remove support for glReadPixels screenshot path"
frameworks/native: Fix toroplus radio with CFLAGS
surfaceflinger: Set max acquired buffer count - Ty Naseer Ahmed