• kalyan.kondapally's avatar
    Dont set SwapInterval with Surfaceless. · bd709ad9
    kalyan.kondapally authored
    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
    
    Review URL: https://codereview.chromium.org/693313002
    
    Cr-Commit-Position: refs/heads/master@{#302506}
    bd709ad9
gl_surface_egl.h 4.08 KB