Use flexible surface compatibility extension for default pbuffer surface
EGL_ANGLE_flexible_surface_compatibility allows contexts to be able to bind to surfaces with different formats e.g. with or without alpha. With DirectComposition, we have a real surface inside a Begin/EndDraw pair, and use a default 1x1 pbuffer surface outside of that. That surface must be created with flexible surface compatibility so that we can MakeCurrent outside of Begin/EndDraw. Noticed this while working on a related change. There were some crashes in MakeCurrent in SetSwapInterval which was fixed in a different way by removing SetSwapInterval, but it's possible the root cause was this. Bug: 800950 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: I05aa1a61bfa0d1445778bbd9599d3f630dddbe8c Reviewed-on: https://chromium-review.googlesource.com/c/1237535Reviewed-by:Zhenyao Mo <zmo@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Cr-Commit-Position: refs/heads/master@{#599049}
Showing
Please register or sign in to comment