• Maksim Sisov's avatar
    USE_X11 and USE_OZONE: //gpu: choose between ozone and x11 path · d7d6d28e
    Maksim Sisov authored
    This patch resolves mostly to the following pattern:
    
    #if defined(USE_X11)
    DoThis();
    #elif defined(USE_OZONE)
    OzonePlatform::DoThat();
    #endif
    
    Two ifdefs are combined to a single ifdef now with
    if (IsUsingOzonePlatform()) condition is added.
    
    -----
    
    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: Ie8f8560ffb9ab7ab24b10412a5a612c3cc279373
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2250250
    Commit-Queue: Maksim Sisov (GMT+3) <msisov@igalia.com>
    Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
    Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#790369}
    d7d6d28e
gles2_cmd_decoder.cc 742 KB