Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(979)

Issue 10389051: Change GPUInfo to handle multiple GPUs. (Closed)

Created:
8 years, 7 months ago by Zhenyao Mo
Modified:
8 years, 7 months ago
CC:
chromium-reviews, MAD, jar (doing other things), jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, Ilya Sherman
Visibility:
Public.

Description

Change GPUInfo to handle multiple GPUs. At the moment we always select one GPU as primary and the others as secondary. In preliminary GPU info collection (without creating a GL context and collect GL VENDOR/RENDERER strings), we actually don't know which GPU is in use. The current logic is that if one GPU is Intel, we assume the other is primary. I agree a better logic is needed. However, at the moment, logging/crash reports all requires ONE GPU vendor_id/device_id, so even though we don't know which GPU is active, we still need to randomly select one. This needs more thinking and design, so I think it's reasonable to leave it to a possible future CL. Also, the logic on collecting GPU info through libpci is changed to collect multiple GPUs. If one is Intel and one is NVIDIA, we assume it's optimus and we disable GPU features. This logic is hardwired in Chrome in this CL. The plan is to push the logic to blacklist, but I'll leave it to a seperate CL. BUG=126307, 75220 TEST=about:gpu page on a Linux system with optimus GPU R=kbr TBR=jam Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=136429

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -186 lines) Patch
M chrome/browser/gpu_blacklist.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/gpu_blacklist_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/gpu_util.cc View 1 2 2 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/flash_ui.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/child_process_logging_mac.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/child_process_logging_posix.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/child_process_logging_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_data_manager_impl.h View 1 chunk +0 lines, -9 lines 0 comments Download
M content/browser/gpu/gpu_data_manager_impl.cc View 1 2 2 chunks +10 lines, -74 lines 0 comments Download
M content/common/gpu/gpu_info_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 chunk +9 lines, -2 lines 0 comments Download
M content/gpu/gpu_info_collector_linux.cc View 5 chunks +61 lines, -51 lines 0 comments Download
M content/gpu/gpu_info_collector_mac.mm View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/gpu/gpu_info_collector_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/gpu/gpu_info_collector_win.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/gpu_info.h View 3 chunks +23 lines, -5 lines 0 comments Download
content/public/common/gpu_info.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M content/test/gpu/gpu_test_config.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/test/gpu/gpu_test_config_unittest.cc View 2 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Zhenyao Mo
Ken, please have a look. Note that in this CL I only changed the linux ...
8 years, 7 months ago (2012-05-10 00:02:11 UTC) #1
Ken Russell (switch to Gerrit)
Couple of questions. https://chromiumcodereview.appspot.com/10389051/diff/2004/content/browser/gpu/gpu_data_manager_impl.h File content/browser/gpu/gpu_data_manager_impl.h (left): https://chromiumcodereview.appspot.com/10389051/diff/2004/content/browser/gpu/gpu_data_manager_impl.h#oldcode91 content/browser/gpu/gpu_data_manager_impl.h:91: static bool Merge(content::GPUInfo* object, const content::GPUInfo& ...
8 years, 7 months ago (2012-05-10 01:11:08 UTC) #2
Zhenyao Mo
Revised, please have another look. Also, I changed the about:gpu behavior to list GPUs as ...
8 years, 7 months ago (2012-05-10 21:55:32 UTC) #3
Ken Russell (switch to Gerrit)
8 years, 7 months ago (2012-05-10 22:22:40 UTC) #4
Sounds good. LGTM

Powered by Google App Engine
This is Rietveld 408576698