• Jonah Ryan-Davis's avatar
    Reland "Populate secondary GPU info after GPU switch on Mac." · a54a3003
    Jonah Ryan-Davis authored
    This is a reland of 07bb169a
    This CL moves CollectGraphicsInfoGL and DidUpdateGPUInfo calls
    onto the main thread, and creates a helper function
    GpuServiceImpl::UpdateGpuInfoGL to do so.
    
    Original change's description:
    > Populate secondary GPU info after GPU switch on Mac.
    >
    > The secondary GPU was not populated with information taken from GL
    > strings after a GPU switch. This CL addresses this by re-querying
    > this information each time the GPU is switched.
    > The active GPU in dual-GPU systems is now computed in the GPU
    > process and communicated back to the browser process. The
    > heuristic GpuDataManagerImpl::UpdateActiveGpu has been removed.
    >
    > Bug: chromium:1152212
    > Change-Id: Ie54dd5dc06c3d0a1c5f0445cc0f313adc8fa24cf
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2560552
    > Reviewed-by: Jonathan Backer <backer@chromium.org>
    > Reviewed-by: Joe Mason <joenotcharles@chromium.org>
    > Reviewed-by: Kenneth Russell <kbr@chromium.org>
    > Commit-Queue: Jonah Ryan-Davis <jonahr@google.com>
    > Cr-Commit-Position: refs/heads/master@{#832610}
    
    Bug: chromium:1152212
    Bug: chromium:1154752
    Change-Id: I981fcabe87d651310ba27b42a0f1e926af67cb2a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2569953
    Commit-Queue: Jonah Ryan-Davis <jonahr@google.com>
    Reviewed-by: default avatarJoe Mason <joenotcharles@chromium.org>
    Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
    Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#834743}
    a54a3003
gpu_host_impl.cc 19.1 KB