From 3161a3d39abf9124d390636c1eb42192309bf1d0 Mon Sep 17 00:00:00 2001 From: "rlp@chromium.org" Date: Wed, 30 Jun 2010 17:25:18 +0000 Subject: Inlining accessors and mutators of gpu_info so that there won't be duplicate across platform implementations. BUG=38736 TEST=gpu unittests Review URL: http://codereview.chromium.org/2830025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51270 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/gpu/gpu_info_win.cc | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'chrome/gpu/gpu_info_win.cc') diff --git a/chrome/gpu/gpu_info_win.cc b/chrome/gpu/gpu_info_win.cc index f2a9dec..529b1ab 100644 --- a/chrome/gpu/gpu_info_win.cc +++ b/chrome/gpu/gpu_info_win.cc @@ -11,37 +11,6 @@ #include "base/scoped_native_library.h" #include "base/string_util.h" -uint32 GPUInfo::vendor_id() const { - return vendor_id_; -} - -uint32 GPUInfo::device_id() const { - return device_id_; -} - -std::wstring GPUInfo::driver_version() const { - return driver_version_; -} - -uint32 GPUInfo::pixel_shader_version() const { - return pixel_shader_version_; -} - -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); -- cgit v1.1