• Maksim Sisov's avatar
    [ozone/wayland] Do not add window if manager does not exist · 5e55fd6a
    Maksim Sisov authored
    It may happen that the zwp linux dmabuf protocol is not available.
    In this case, we have already been resetting the gbm device and
    make the gpu use wl_egl instead, but the WaylandConnection still
    has been trying to add a window to the WaylandBufferManager upon
    creation. However, as previously said, the manager may not exist
    because the zwp linux dmabuf had not been advertised as supported
    protocol.
    
    Without this patch, it just crashes.
    
    Bug: 578890
    Change-Id: I15bcd7ae968590d358a4590d79a54067de02e8d6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1609822Reviewed-by: default avatarMichael Spang <spang@chromium.org>
    Commit-Queue: Maksim Sisov <msisov@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#659405}
    5e55fd6a
wayland_connection.cc 20.9 KB