OSDN Git Service

libhwui: handle eglSwapBuffers with EGL_BAD_NATIVE_WINDOW error case
authorZhang Dongsheng <dongsheng.zhang@intel.com>
Thu, 21 Jan 2016 07:12:18 +0000 (15:12 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 20 Jul 2016 09:53:26 +0000 (17:53 +0800)
commit9a1e74a9dd503e6fa06a561346b7a9d649050831
tree8b7c66f5bfeba0a151daa7861d84c6f285d6fb63
parent74a7fe83b0d8c8b06c0f5fe247a81e7413b2e339
libhwui: handle eglSwapBuffers with EGL_BAD_NATIVE_WINDOW error case

If eglSwapBuffers is called but the under surface was destroyed,
the EGL_BAD_NATIVE_WINDOW error may also be generated according
to the EGL spec 1.4.

This really shouldn't happen from the upper, but add the graceful
handling of this case also.

Change-Id: Ic0a599808b72f401d2a01c3dc40f9e6ea0e0a564
Signed-off-by: Zhang Dongsheng <dongsheng.zhang@intel.com>
Tracked-On: https://jira01.devtools.intel.com/browse/OAM-12666
Reviewed-on: https://android.intel.com:443/460679
libs/hwui/renderthread/EglManager.cpp