summaryrefslogtreecommitdiffstats
path: root/chrome/app/breakpad_linux.cc
diff options
context:
space:
mode:
authorcramya@chromium.org <cramya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-18 20:23:01 +0000
committercramya@chromium.org <cramya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-18 20:23:01 +0000
commitd6bdfaefc32238c8c41cdf5cf831b22a74a13acc (patch)
tree6958fa69857f10fbfcf98b6d621fee6f1bb9ba46 /chrome/app/breakpad_linux.cc
parentc2caa11f5b8f132e219c1e2246bc276a9cf1b086 (diff)
downloadchromium_src-d6bdfaefc32238c8c41cdf5cf831b22a74a13acc.zip
chromium_src-d6bdfaefc32238c8c41cdf5cf831b22a74a13acc.tar.gz
chromium_src-d6bdfaefc32238c8c41cdf5cf831b22a74a13acc.tar.bz2
Adding gl_vendor and gl_renderer to the crash report and UMA system profile protocol buffers.
Adding these fields to differentiate between devices with the same 'model' string but different GPUs. Also remove gpu vendor_id and device_id for Android since this concept does not exist for Android. BUG=165263 Review URL: https://chromiumcodereview.appspot.com/11958047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/breakpad_linux.cc')
-rw-r--r--chrome/app/breakpad_linux.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc
index 07e1511..b4cca7b 100644
--- a/chrome/app/breakpad_linux.cc
+++ b/chrome/app/breakpad_linux.cc
@@ -1063,16 +1063,27 @@ void HandleCrashDump(const BreakpadInfo& info) {
// If GPU info is known, send it.
if (*child_process_logging::g_gpu_vendor_id) {
+#if !defined(OS_ANDROID)
static const char vendor_msg[] = "gpu-venid";
static const char device_msg[] = "gpu-devid";
+#endif
+ static const char gl_vendor_msg[] = "gpu-gl-vendor";
+ static const char gl_renderer_msg[] = "gpu-gl-renderer";
static const char driver_msg[] = "gpu-driver";
static const char psver_msg[] = "gpu-psver";
static const char vsver_msg[] = "gpu-vsver";
+#if !defined(OS_ANDROID)
writer.AddPairString(vendor_msg, child_process_logging::g_gpu_vendor_id);
writer.AddBoundary();
writer.AddPairString(device_msg, child_process_logging::g_gpu_device_id);
writer.AddBoundary();
+#endif
+ writer.AddPairString(gl_vendor_msg, child_process_logging::g_gpu_gl_vendor);
+ writer.AddBoundary();
+ writer.AddPairString(gl_renderer_msg,
+ child_process_logging::g_gpu_gl_renderer);
+ writer.AddBoundary();
writer.AddPairString(driver_msg, child_process_logging::g_gpu_driver_ver);
writer.AddBoundary();
writer.AddPairString(psver_msg, child_process_logging::g_gpu_ps_ver);