DescriptionDont set SwapInterval with Surfaceless.
EglSwapInterval doesn't take any effect when using a Surfacless
Context and will just return EGL_BAD_SURFACE in this case. This
patch adds checks to track if the current context is surfaceless
and ignores swap interval call in that case.
Tested by building Chromium with ChromesOS and
Ozone builds options and by launching chromium with the
following run time options:
chrome --no-sandbox --ozone-platform=gbm --ozone-use-surfaceless
After this change, I don't see any more EGL error as result of setting the SwapInterval
with surfaceless context during the launch time.
i.e. libEGL debug: EGL user error 0x300d (EGL_BAD_SURFACE) in eglSwapInterval
BUG=380861
Committed: https://crrev.com/bd709ad9b0e1f2d7124eb4d91ad9cde24245a7e6
Cr-Commit-Position: refs/heads/master@{#302506}
Patch Set 1 #Patch Set 2 : Missing Changes #
Total comments: 3
Patch Set 3 : Avoid adding another boolean #
Messages
Total messages: 14 (3 generated)
|