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

Issue 10383146: Collect multiple GPUs' info on Mac and display them in about:gpu. (Closed)

Created:
8 years, 7 months ago by Zhenyao Mo
Modified:
8 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Collect multiple GPUs' info on Mac and display them in about:gpu. Also, we detect AMD switchable. For the purpose of blacklisting, we always put AMD as primary GPU in case of AMD switchable. Tested on Mac with AMD switchable and it works correctly. BUG=121024 TEST=manual R=kbr Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137174

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -90 lines) Patch
M content/common/gpu/gpu_messages.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_info_collector_mac.mm View 1 2 3 chunks +101 lines, -90 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Zhenyao Mo
Please have a look.
8 years, 7 months ago (2012-05-11 22:28:40 UTC) #1
Ken Russell (switch to Gerrit)
http://codereview.chromium.org/10383146/diff/1/content/gpu/gpu_info_collector_mac.mm File content/gpu/gpu_info_collector_mac.mm (right): http://codereview.chromium.org/10383146/diff/1/content/gpu/gpu_info_collector_mac.mm#newcode75 content/gpu/gpu_info_collector_mac.mm:75: while ((entry = IOIteratorNext(entry_iterator))) { Because of the asymmetry ...
8 years, 7 months ago (2012-05-11 22:46:15 UTC) #2
Zhenyao Mo
revised, please have another look. http://codereview.chromium.org/10383146/diff/1/content/gpu/gpu_info_collector_mac.mm File content/gpu/gpu_info_collector_mac.mm (right): http://codereview.chromium.org/10383146/diff/1/content/gpu/gpu_info_collector_mac.mm#newcode75 content/gpu/gpu_info_collector_mac.mm:75: while ((entry = IOIteratorNext(entry_iterator))) ...
8 years, 7 months ago (2012-05-14 18:41:11 UTC) #3
Ken Russell (switch to Gerrit)
8 years, 7 months ago (2012-05-15 18:08:22 UTC) #4
LGTM

http://codereview.chromium.org/10383146/diff/1/content/gpu/gpu_info_collector...
File content/gpu/gpu_info_collector_mac.mm (right):

http://codereview.chromium.org/10383146/diff/1/content/gpu/gpu_info_collector...
content/gpu/gpu_info_collector_mac.mm:108: gpu_info->secondary_gpus[0].vendor_id
== kVendorIDAMD)) {
On 2012/05/14 18:41:11, Zhenyao Mo wrote:
> On 2012/05/11 22:46:15, kbr wrote:
> > This must be generalized for non-AMD GPUs, or blacklisting on dual
> Intel/NVIDIA
> > GPU MacBook Pros will be broken.
> 
> Is optimus supported on Mac also?  Anyway, I implemented the optimus detection
> logic in case it's supported now or in the future.

I believe that Apple implements their own GPU-switching mechanism that isn't
branded under either of NVIDIA's "Optimus" AMD's "switchable GPU" names, but
from the standpoint of this logic, it's fine to call it Optimus.

Powered by Google App Engine
This is Rietveld 408576698