• Maksim Sisov's avatar
    X11 and Ozone: cleanup //components for use_x11 && use_ozone build. · 21f77aaa
    Maksim Sisov authored
    Removes unnecessary case for surface handle (non-Ozone X11 and Ozone has
    the same type of AcceleratedWidget now), chooses correct path based on
    OzonePlatform feature usage.
    
    -----
    
    PS: Please note that this is a temp solution that will help to choose
    between ozone and non-ozone X11 build. The switch that will be used
    to choose the path is --enable-features=UseOzonePlatform. Once
    non-Ozone X11 path is removed (hopefully by Q1 2021 depending on how
    th finch trial goes), the wrapper will be removed.
    
    Please also note that it's impossible to build use_x11 && use_ozone
    without some hacks in PlatformCursor code. The changes to that are
    on their way to upstream.
    
    ----
    
    Bug: 1085700
    Change-Id: I3f82aa08d02e8daa58ab39831b67ddb91d25913c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315026Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
    Reviewed-by: default avatarThomas Anderson <thomasanderson@chromium.org>
    Commit-Queue: Maksim Sisov (GMT+3) <msisov@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#791781}
    21f77aaa
buffer_queue_unittest.cc 23 KB