nepotu/android_frameworks_native — pull request #1 by nepotu (2013-05-14 11:54:56+00:00)
Title: surfaceflinger: Retain support for legacy graphics (1/4)

This fixes errors when booting. If triple buffering is enabled
on a 2.6.35 kernel with an irregular or old graphics system
(such as an MSM7x27 phone) then it will give errors about
surfaceflinger not finding the file or directory and hence
enters a nonstop bootloop in which it tries again and again to
find and open the gralloc, hwcomposer and copybit libraries.

To use this fix, insert the following lines in your BoardConfig.mk:
COMMON_GLOBAL_CFLAGS += -DUSES_LEGACY_GRAPHICS
BOARD_USES_LEGACY_GRAPHICS := true

Change-Id: I50ed9ad7e785ef009e63b099c25928685f7ccd73