• Maksim Sisov's avatar
    [ozone/wayland]: Add wl_drm support. · cd3bebdd
    Maksim Sisov authored
    At the moment, we have zwp_linux_dmabuf support that we use
    to create wl_buffers in the browser process based on passed dmabuf prime fds
    from the GPU process.
    
    However, there are plenty of systems that also support
    EGL_EXT_image_dma_buf_import, but do not provide zwp_linux_dmabuf
    protocol extension.
    
    Instead, instead they use the wl_drm protocol. Thus,
    import it to third_party protocols and utilize it in the
    Ozone/Wayland implementation.
    
    There are no functionality changes brought with this CL, but rather
    it adds support for that protocol and uses it if zwp_linux_dmabuf
    is not available.
    
    If non is available, Chromium uses software compositing
    (Chromium hosts gpu service in a separate process) or Wayland Egl
    (in-process-gpu is passed and the gpu service is hosted in the browser
    process).
    
    Bug: 1008348
    Change-Id: I06eddc68ef0ad0a897aeefa1f31677986e563eac
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827001Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
    Reviewed-by: default avatarMichael Spang <spang@chromium.org>
    Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
    Commit-Queue: Maksim Sisov <msisov@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#703388}
    cd3bebdd
BUILD.gn 9.71 KB