Terminate session on any error from eglSwapBuffers()
authorPyry Haulos <phaulos@google.com>
Fri, 3 Oct 2014 20:11:16 +0000 (13:11 -0700)
committerPyry Haulos <phaulos@google.com>
Fri, 3 Oct 2014 20:17:43 +0000 (13:17 -0700)
commit1bdf526ea422474296d2b88392e8f24dd4f31a99
tree9eaa5f4c0dd4bca59aed1c401fd71deb01c21d2a
parent6c7911bf3bb6e84f1f374b80678a3961245a847a
Terminate session on any error from eglSwapBuffers()

Test run should always abort if eglSwapBuffers() gives an error as it
is almost always a sign that something has gone unrecoverably wrong in
the driver.

 * Always throw tcu::ResourceError on any error from eglSwapBuffers().
This will make TestExecutor to abort the session.

 * Treat EGL_BAD_NATIVE_WINDOW as a sign of potentially destroyed
underlying window, not just EGL_BAD_SURFACE.

Change-Id: I42f3769566670630e3965b0ff50119297639fd5c
framework/egl/egluGLContextFactory.cpp