• Alexandre Courbot's avatar
    Revert "Call PreSandboxStartup after GL initialization in GpuInit" · 622b4c1f
    Alexandre Courbot authored
    This reverts commit d17c53b3.
    
    Reason for revert: This makes the GPU process crash on startup on Krane (and probably many other ChromeOS devices).
    
    Original change's description:
    > Call PreSandboxStartup after GL initialization in GpuInit
    > 
    > Fixes "vaInitialize failed: unknown libva error"
    > on Wayland with LIBVA_DRIVER_NAME=i965
    > 
    > VaapiWrapper relies on the GL implementation to decide
    > which display to use. If the GL implementation is none,
    > then VaapiWrapper is likely to do the wrong guess resulting
    > in the above error.
    > 
    > Bug: 1041229
    > Change-Id: I1255a032a5e14b3aaffe3026a886de7e6d9ff0d7
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2011640
    > Reviewed-by: Maggie Chen <magchen@chromium.org>
    > Reviewed-by: Kenneth Russell <kbr@chromium.org>
    > Commit-Queue: Julien Isorce <julien.isorce@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#733847}
    
    TBR=kbr@chromium.org,julien.isorce@chromium.org,magchen@chromium.org
    
    Change-Id: Ic536f47506a2e9a3f6db8f946732030295a8d63f
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: 1041229
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2014351Reviewed-by: default avatarAlexandre Courbot <acourbot@chromium.org>
    Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#733901}
    622b4c1f
gpu_init.cc 26.1 KB