OSDN Git Service

Fix eglGetSyncAttribKHR regression for qemu1.
authorTao Wu <lepton@google.com>
Sat, 24 Sep 2016 08:56:05 +0000 (01:56 -0700)
committerTao Wu <lepton@google.com>
Sat, 24 Sep 2016 08:56:05 +0000 (01:56 -0700)
commite7d5e38fa46f39773f5d9785865f0728e12b520f
treeb24058a0ed9daa5c7fc53dafee6a31b81818a2c5
parent829f7a69ea3ef859a555760567539822d18f2bc2
Fix eglGetSyncAttribKHR regression for qemu1.

In https://googleplex-android-review.git.corp.google.com/1219570
We assume user always call eglClientWaitSyncKHR afer eglCreateSyncKHR.
But some app just repeats calling eglGetSyncAttribKHR until it gets
EGL_SIGNALED_KHR. Previous code always returns EGL_SIGNALED_KHR in
this case.
Restore previous behavior for qemu1 code path.

Bug: 31399081
Change-Id: Ie7a12fc125627d40e294fe3a4a81abc33b6c0b00
Signed-off-by: Tao Wu <lepton@google.com>
system/egl/egl.cpp