summaryrefslogtreecommitdiffstats
path: root/chrome/gpu
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-23 23:19:22 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-23 23:19:22 +0000
commit4dd33d2a1bf4bff8c1c637bf38dda3f6d7882af5 (patch)
tree7b707d51245d986ca1d206391e643c9f25154935 /chrome/gpu
parentde7ee3450c5ae155003c037331cfda4f9ca85d9c (diff)
downloadchromium_src-4dd33d2a1bf4bff8c1c637bf38dda3f6d7882af5.zip
chromium_src-4dd33d2a1bf4bff8c1c637bf38dda3f6d7882af5.tar.gz
chromium_src-4dd33d2a1bf4bff8c1c637bf38dda3f6d7882af5.tar.bz2
Adding a mutator method for the private variables.
BUG=38736 TEST=none Review URL: http://codereview.chromium.org/2860016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu')
-rw-r--r--chrome/gpu/gpu_info.h6
-rw-r--r--chrome/gpu/gpu_info_win.cc11
2 files changed, 17 insertions, 0 deletions
diff --git a/chrome/gpu/gpu_info.h b/chrome/gpu/gpu_info.h
index 4af82fd..12b0369 100644
--- a/chrome/gpu/gpu_info.h
+++ b/chrome/gpu/gpu_info.h
@@ -44,6 +44,12 @@ class GPUInfo {
// Returns true on success.
bool CollectGraphicsInfo();
+ // Populate variables with passed in values
+ void SetGraphicsInfo(uint32 vendor_id, uint32 device_id,
+ const std::wstring& driver_version,
+ uint32 pixel_shader_version,
+ uint32 vertex_shader_version);
+
#if defined(OS_WIN)
// Windows provides two ways of doing graphics so we need two ways of
// collecting info based on what's on a user's machine.
diff --git a/chrome/gpu/gpu_info_win.cc b/chrome/gpu/gpu_info_win.cc
index a6d4160..f2a9dec 100644
--- a/chrome/gpu/gpu_info_win.cc
+++ b/chrome/gpu/gpu_info_win.cc
@@ -31,6 +31,17 @@ uint32 GPUInfo::vertex_shader_version() const {
return vertex_shader_version_;
}
+void GPUInfo::SetGraphicsInfo(uint32 vendor_id, uint32 device_id,
+ const std::wstring& driver_version,
+ uint32 pixel_shader_version,
+ uint32 vertex_shader_version) {
+ vendor_id_ = vendor_id;
+ device_id_ = device_id;
+ driver_version_ = driver_version;
+ pixel_shader_version_ = pixel_shader_version;
+ vertex_shader_version_ = vertex_shader_version;
+}
+
bool GPUInfo::CollectGraphicsInfo() {
FilePath d3d_path(base::GetNativeLibraryName(L"d3d9"));
base::ScopedNativeLibrary d3dlib(d3d_path);