• kylechar's avatar
    Fix GPU process fallback logic. · b90c7c8c
    kylechar authored
    1. In GpuProcessHost::OnProcessCrashed() record the process crash first.
       This means the GPU mode fallback will happen before a new GPU process
       is started.
    2. Don't call FallBackToNextGpuMode() if GPU process initialization
       fails for an unsandboxed GPU process. The unsandboxed GPU is only
       used for collect information and it's failure doesn't indicate a need
       to change GPU modes.
    
    Bug: 869419
    Change-Id: I8bd0a03268f0ea8809f3df8458d4e6a92db9391f
    Reviewed-on: https://chromium-review.googlesource.com/1157164Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
    Commit-Queue: kylechar <kylechar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#579625}
    b90c7c8c
gpu_process_host.cc 60.2 KB