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

Unified Diff: chrome/common/gpu_info.cc

Issue 3104011: Add Mac GPU logging code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « chrome/common/gpu_info.h ('k') | chrome/common/gpu_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gpu_info.cc
===================================================================
--- chrome/common/gpu_info.cc (revision 56911)
+++ chrome/common/gpu_info.cc (working copy)
@@ -6,7 +6,8 @@
GPUInfo::GPUInfo()
: vendor_id_(0), device_id_(0), driver_version_(L""),
- pixel_shader_version_(0), vertex_shader_version_(0) {
+ pixel_shader_version_(0), vertex_shader_version_(0),
+ gl_version_(0) {
}
uint32 GPUInfo::vendor_id() const {
@@ -29,13 +30,20 @@
return vertex_shader_version_;
}
+uint32 GPUInfo::gl_version() const {
+ return gl_version_;
+}
+
+
void GPUInfo::SetGraphicsInfo(uint32 vendor_id, uint32 device_id,
const std::wstring& driver_version,
uint32 pixel_shader_version,
- uint32 vertex_shader_version) {
+ uint32 vertex_shader_version,
+ uint32 gl_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;
+ gl_version_ = gl_version;
}
« no previous file with comments | « chrome/common/gpu_info.h ('k') | chrome/common/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698