Catch egl errors when drawIntoSurfaces
Cts test case: testAbandonRepeatingRequestSurface is used to test the GPU for the ability of detecting the interrupt release of surface. It may have a dequeue buffer action in eglMakeCurrent, so it would return error "EGL_BAD_NATIVE_WINDOW" after surfaceflinger has been disconnected. In this case, the test can be passed only when we catch the errors thrown from GPU when calling eglMakeCurrent, or the test would be interrupted by the error exception. Bug: 72750260 Test: manual, ran the cts test case android.hardware.camera2.cts.RobustnessTest#testAbandonRepeatingRequestSurface Change-Id: I79bacdd3c0382a79786f8eb689eb4f89c830ddcc (cherry picked from commit 87433cd1)
Loading
Please register or sign in to comment