aboutsummaryrefslogtreecommitdiff
path: root/src/google_breakpad/processor
diff options
context:
space:
mode:
authorMaria Mandlis <mmandlis@google.com>2016-02-11 10:04:04 -0800
committerMaria Mandlis <mmandlis@google.com>2016-02-11 10:04:04 -0800
commitdf280bb6314467dae14ace80b45c61760e683ae1 (patch)
tree324d2260d771a1d67abbd980f590945ceb6067c0 /src/google_breakpad/processor
parentRevert "Added a switch to dump minidump modules in minidump_stackwalk." (diff)
downloadbreakpad-df280bb6314467dae14ace80b45c61760e683ae1.tar.xz
Parse additional line introduced in the microdump format and containing the GPU infromation in the following format:
G GL_VERSION|GL_VENDOR|GL_RENDERER. The GPU version, vendor and renderer are extracted during microdump parsing and populated in the appropriate fields in the SystemInfo struct. This is to match the changes introduced in crrev.com/1343713002 and crrev.com/1334473003 BUG=chromium:536769 R=primiano@chromium.org Review URL: https://codereview.chromium.org/1678463002 .
Diffstat (limited to 'src/google_breakpad/processor')
-rw-r--r--src/google_breakpad/processor/system_info.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/google_breakpad/processor/system_info.h b/src/google_breakpad/processor/system_info.h
index 9583d9e8..8d2f60be 100644
--- a/src/google_breakpad/processor/system_info.h
+++ b/src/google_breakpad/processor/system_info.h
@@ -44,7 +44,7 @@ namespace google_breakpad {
struct SystemInfo {
public:
SystemInfo() : os(), os_short(), os_version(), cpu(), cpu_info(),
- cpu_count(0) {}
+ cpu_count(0), gl_version(), gl_vendor(), gl_renderer() {}
// Resets the SystemInfo object to its default values.
void Clear() {
@@ -54,6 +54,9 @@ struct SystemInfo {
cpu.clear();
cpu_info.clear();
cpu_count = 0;
+ gl_version.clear();
+ gl_vendor.clear();
+ gl_renderer.clear();
}
// A string identifying the operating system, such as "Windows NT",
@@ -91,6 +94,11 @@ struct SystemInfo {
// The number of processors in the system. Will be greater than one for
// multi-core systems.
int cpu_count;
+
+ // The GPU information. Currently only populated in microdumps.
+ string gl_version;
+ string gl_vendor;
+ string gl_renderer;
};
} // namespace google_breakpad