|
|
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
Total comments: 4
|
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
|
Total messages: 4 (0 generated)
|