OSDN Git Service

Fix two EGLConfig selection bugs
authorJesse Hall <jessehall@google.com>
Sat, 28 Sep 2013 05:10:47 +0000 (22:10 -0700)
committerJesse Hall <jessehall@google.com>
Mon, 30 Sep 2013 17:49:16 +0000 (10:49 -0700)
commitb65f32ebe2c86869b07ac1c986660dfb2187b7d3
treedf8a549a979c6c612b1af3170a99173dd251784b
parent86206b41b2ff000e086301c6bafb8da577e563b2
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