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

Unified Diff: chrome/common/crash_keys.cc

Issue 23021021: Set the GPU info using the crash key system instead of platform-specific mechanisms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 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
« chrome/common/crash_keys.h ('K') | « chrome/common/crash_keys.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/crash_keys.cc
diff --git a/chrome/common/crash_keys.cc b/chrome/common/crash_keys.cc
index eae240320c05e5d83b1b9f928afe5fb457cfcebe..ca28733de7562110503503ab8b36a0ba513ef1c5 100644
--- a/chrome/common/crash_keys.cc
+++ b/chrome/common/crash_keys.cc
@@ -46,6 +46,14 @@ COMPILE_ASSERT(kMediumSize <= kSingleChunkLength,
size_t RegisterChromeCrashKeys() {
base::debug::CrashKey keys[] = {
{ kActiveURL, kLargeSize },
+ { kGPUVendorID, kSmallSize },
+ { kGPUDeviceID, kSmallSize },
+ { kGPUDriverVersion, kSmallSize },
+ { kGPUPixelShaderVersion, kSmallSize },
+ { kGPUVertexShaderVersion, kSmallSize },
+ { kGPUVendor, kSmallSize },
+ { kGPURenderer, kSmallSize },
+ { kGPUGLVersion, kSmallSize },
// content/:
{ "ppapi_path", kMediumSize },
@@ -74,6 +82,15 @@ size_t RegisterChromeCrashKeys() {
const char kActiveURL[] = "url-chunk";
+const char kGPUVendorID[] = "gpu-venid";
+const char kGPUDeviceID[] = "gpu-devid";
+const char kGPUDriverVersion[] = "gpu-driver";
+const char kGPUPixelShaderVersion[] = "gpu-psver";
+const char kGPUVertexShaderVersion[] = "gpu-vsver";
+const char kGPUVendor[] = "gpu-gl-vendor";
+const char kGPURenderer[] = "gpu-gl-renderer";
+const char kGPUGLVersion[] = "gpu-glver";
+
#if defined(OS_MACOSX)
namespace mac {
« chrome/common/crash_keys.h ('K') | « chrome/common/crash_keys.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698