• boliu's avatar
    Insert in-process GPU switches on UI thread · 6d695e6f
    boliu authored
    For in-process gpu, the CommandLine of the current process is a shared
    resource and cannot be safely manipulated on the IO thread.
    
    This moves inserting the gpu command line switches to the UI thread, and
    slightly start up. Although still need additional fixes to start up code
    to ensure it's safe to manipulate it on UI thread.
    
    This also fixes the bug of inserting gpu switches when GpuProcessHost is
    not used, for example in android webview.
    
    BUG=450396
    
    Review URL: https://codereview.chromium.org/865063002
    
    Cr-Commit-Position: refs/heads/master@{#313177}
    6d695e6f
gpu_data_manager_impl_private.cc 39.8 KB