OSDN Git Service

Fix two EGLConfig selection bugs
authorJesse Hall <jessehall@google.com>
Sat, 28 Sep 2013 05:10:47 +0000 (22:10 -0700)
committerThe Android Automerger <android-build@google.com>
Mon, 30 Sep 2013 23:37:06 +0000 (16:37 -0700)
commit6f2bc240e96e82058135f0eccf08594e4301ef3d
treedf8a549a979c6c612b1af3170a99173dd251784b
parent08db4d4ef7088145828e3b626573f2713de0e46e
Fix two EGLConfig selection bugs

This fixes two bugs introduced by
  Change-Id: Ia8cc084c02a0e3de910def024da8a08d02bbd89d

(a) There is no invalid EGLConfig value, in particular zero is valid.
    Checking return values of eglGetConfigs and eglChooseConfig is the
    only way to determine success.
(b) The "simple" EGLConfig query used as the emulator fallback should
    not include EGL_RECORDABLE; the emulator doesn't have it.

Bug: 10935622
Change-Id: Ib798a24e7cf06a679811c46eaa45d39174a715ec
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h