Despite being a 'client resource', the window can become invalid due to events outside of the client code's control, which causes XGetWindowAttributes to fail because it retrieves servers-side data that is no longer available. Hence it is something we should expect to see happen, and not (always) an indication of a bug that needs fixing. Also, we should be able to safely continue with an invalid window. At this point it's up to the client code to catch the X error and handle it appropriately. The EGL spec does not indicate that it should catch it instead and generate an error (eglSwapBuffers can generate EGL_CONTEXT_LOST but that's reserved for power management events). Bug chromium:861882 Bug chromium:824522 Change-Id: I78a364516b9466f652c94de68553369935590bde Reviewed-on: https://swiftshader-review.googlesource.com/19868Reviewed-by:Antoine Labour <piman@chromium.org> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| BUILD.gn | Loading commit data... | |
| Config.cpp | Loading commit data... | |
| Config.hpp | Loading commit data... | |
| FrameBuffer.cpp | Loading commit data... | |
| FrameBuffer.hpp | Loading commit data... | |
| FrameBufferAndroid.cpp | Loading commit data... | |
| FrameBufferAndroid.hpp | Loading commit data... | |
| FrameBufferDD.cpp | Loading commit data... | |
| FrameBufferDD.hpp | Loading commit data... | |
| FrameBufferGDI.cpp | Loading commit data... | |
| FrameBufferGDI.hpp | Loading commit data... | |
| FrameBufferOSX.hpp | Loading commit data... | |
| FrameBufferOSX.mm | Loading commit data... | |
| FrameBufferOzone.cpp | Loading commit data... | |
| FrameBufferOzone.hpp | Loading commit data... | |
| FrameBufferWin.cpp | Loading commit data... | |
| FrameBufferWin.hpp | Loading commit data... | |
| FrameBufferX11.cpp | Loading commit data... | |
| FrameBufferX11.hpp | Loading commit data... | |
| SwiftConfig.cpp | Loading commit data... | |
| SwiftConfig.hpp | Loading commit data... | |
| libX11.cpp | Loading commit data... | |
| libX11.hpp | Loading commit data... |