• Maksim Sisov's avatar
    [ozone/wayland/drm] Refactor and place gbm_device into shared place. · 03d4a196
    Maksim Sisov authored
    This CL is a part of Wayland gpu/ui split effort, which fixes the
    Ozone/Wayland and makes it functional when the gpu service is running
    out of the browser process.
    
    The patch does not bring any functionality changes, but rather
    prepares Ozone/Wayland for a dmabuf based approach, which uses ozone/drm code,
    to be landed in the upstream.
    
    In particular, gbm_device.cc/h is moved into a common folder in the
    ui/ozone/common/linux and renamed to gbm_device_linux.cc/h. What is more,
    it is refactored in such a way that it can be used by both Wayland with
    dmabuf approach and ozone/drm.
    
    This is only compiled for wayland(downstream now) and drm backends, and
    does not bring any additional load on other backends.
    
    Bug: 820047
    Change-Id: I9eb4da474eb24d6d32fe355ff37b6d0806672fde
    Reviewed-on: https://chromium-review.googlesource.com/1071889
    Commit-Queue: Maksim Sisov <msisov@igalia.com>
    Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#562613}
    03d4a196
gbm_device.cc 768 Bytes