• Maksim Sisov's avatar
    [ozone/common/drm] Avoid forward declaration on not declared deps. · b5b7198a
    Maksim Sisov authored
    Make sure forward declaration is not used to just avoid
    declaring dependencies in the common/BUILD.gn.
    
    That is, DrmDevice is a drm platform's class, which shouldn't be known
    by the ozone/common.
    
    To fix this, return GbmDeviceLinux instead and add AsGbmDeviceLinux method
    to the DrmDevice class to return downcasted pointer to self, and move
    ScanoutBufferGenerator to drm/gpu as long as it's not needed by the
    Wayland with dmabuf approach at this stage.
    
    Bug: 820047
    Change-Id: I25703db41234275e0c0cb5aaefe0e61964a50e83
    Reviewed-on: https://chromium-review.googlesource.com/1088690Reviewed-by: default avatarMichael Spang <spang@chromium.org>
    Commit-Queue: Maksim Sisov <msisov@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#565574}
    b5b7198a
scanout_buffer.h 1.91 KB