diff options
author | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 00:46:46 +0000 |
---|---|---|
committer | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 00:46:46 +0000 |
commit | 511d63b8fec989b046c1a5f7c5216c3a166fcf74 (patch) | |
tree | 967d28c01d58e658fbc6d05f8a6906d9b7f73bd4 /net/socket_stream/socket_stream_metrics.cc | |
parent | c070108aaa0a5cce0bd0452ad197c9dab0ddac92 (diff) | |
download | chromium_src-511d63b8fec989b046c1a5f7c5216c3a166fcf74.zip chromium_src-511d63b8fec989b046c1a5f7c5216c3a166fcf74.tar.gz chromium_src-511d63b8fec989b046c1a5f7c5216c3a166fcf74.tar.bz2 |
Collect GPU info on Mac through IO registry for dual GPU systems.
Go through IO Registry to locate PCI based video cards on Mac. If there are two video cards and one of them is Intel, we assume Intel GPU is the integrated one and the other is the discrete one. Chromium GPU process should always use the discrete one (if Mac is handling automatic card switching), and we identify the discrete card in preliminary GPU info collection so we could run through GPU software rendering list and set up the renderer process with approriate GPU feature capabilities.
Note that if the IO registry method fails, we fallback to the original "GPU locating through current display" method, so this CL should be pretty safe.
BUG=75208,75220
TEST=gpu acceleration is enabled on Mac with Intel/ATI dual GPU.
Review URL: http://codereview.chromium.org/6879023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82202 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket_stream/socket_stream_metrics.cc')
0 files changed, 0 insertions, 0 deletions