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

Unified Diff: content/public/common/gpu_info.h

Issue 10389051: Change GPUInfo to handle multiple GPUs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/public/common/gpu_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/gpu_info.h
===================================================================
--- content/public/common/gpu_info.h (revision 136164)
+++ content/public/common/gpu_info.h (working copy)
@@ -10,6 +10,7 @@
// on which chrome is currently running.
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "base/time.h"
@@ -21,6 +22,24 @@
namespace content {
struct CONTENT_EXPORT GPUInfo {
+ struct CONTENT_EXPORT GPUDevice {
+ GPUDevice();
+ ~GPUDevice();
+
+ // The DWORD (uint32) representing the graphics card vendor id.
+ uint32 vendor_id;
+
+ // The DWORD (uint32) representing the graphics card device id.
+ // Device ids are unique to vendor, not to one another.
+ uint32 device_id;
+
+ // The strings that describe the GPU.
+ // In Linux these strings are obtained through libpci.
+ // In Win/MacOSX, these two strings are not filled at the moment.
+ std::string vendor_string;
+ std::string device_string;
+ };
+
GPUInfo();
~GPUInfo();
@@ -37,12 +56,11 @@
// Computer has AMD Dynamic Switchable Graphics
bool amd_switchable;
- // The DWORD (uint32) representing the graphics card vendor id.
- uint32 vendor_id;
+ // Primary GPU, for exmaple, the discrete GPU in a dual GPU machine.
+ GPUDevice gpu;
- // The DWORD (uint32) representing the graphics card device id. Device ids
- // are unique to vendor, not to one another.
- uint32 device_id;
+ // Secondary GPUs, for example, the integrated GPU in a dual GPU machine.
+ std::vector<GPUDevice> secondary_gpus;
// The vendor of the graphics driver currently installed.
std::string driver_vendor;
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/public/common/gpu_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698