OSDN Git Service

Fix suspend crash issue on no GPU platform.
authorIvan.liu <xiaowen.liu@freescale.com>
Wed, 24 Aug 2016 09:19:03 +0000 (17:19 +0800)
committerIvan.liu <xiaowen.liu@freescale.com>
Thu, 25 Aug 2016 02:50:54 +0000 (10:50 +0800)
commit984827cc9c170b1092a30931b08c7a0d18865fd3
treeae53f5b3dfb94022840b22c46f2143fd00f49cca
parentd0a0ae349c6bbfe4c9cae5d5d2e06085ad9b56e1
Fix suspend crash issue on no GPU platform.

eglChooseConfig should return false only if an error occured.
If eglChooseConfig is called with a valid attribute list,
no internal EGL errors occur. And if no available config matches
the requested attribute list, no configs are returned.
Not only the return value of eglChooseConfig should be checked,
the 'num_config' out-param must be inspected too.
If no configs were returned, and no error occurred, then 'num_config' will be 0.

Change-Id: Id36d88820b8e33713bc83e0d4b90c3fee7f005fd
Signed-off-by: Xiaowen Liu <xiaowen.liu@nxp.com>
services/core/java/com/android/server/display/ColorFade.java