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

Unified Diff: chrome/common/gpu_messages.h

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.cc ('k') | chrome/common/gpu_messages_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gpu_messages.h
===================================================================
--- chrome/common/gpu_messages.h (revision 56911)
+++ chrome/common/gpu_messages.h (working copy)
@@ -87,6 +87,7 @@
m->WriteWString(p.driver_version());
m->WriteUInt32(p.pixel_shader_version());
m->WriteUInt32(p.vertex_shader_version());
+ m->WriteUInt32(p.gl_version());
}
static bool Read(const Message* m, void** iter, param_type* p) {
uint32 vendor_id;
@@ -94,13 +95,16 @@
std::wstring driver_version;
uint32 pixel_shader_version;
uint32 vertex_shader_version;
+ uint32 gl_version;
bool ret = m->ReadUInt32(iter, &vendor_id);
ret = ret && m->ReadUInt32(iter, &device_id);
ret = ret && m->ReadWString(iter, &driver_version);
ret = ret && m->ReadUInt32(iter, &pixel_shader_version);
ret = ret && m->ReadUInt32(iter, &vertex_shader_version);
+ ret = ret && m->ReadUInt32(iter, &gl_version);
p->SetGraphicsInfo(vendor_id, device_id, driver_version,
- pixel_shader_version, vertex_shader_version);
+ pixel_shader_version, vertex_shader_version,
+ gl_version);
return ret;
}
static void Log(const param_type& p, std::string* l) {
« no previous file with comments | « chrome/common/gpu_info.cc ('k') | chrome/common/gpu_messages_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698