summaryrefslogtreecommitdiffstats
path: root/android_webview/crash_reporter
diff options
context:
space:
mode:
authortobiasjs <tobiasjs@chromium.org>2015-09-29 05:03:38 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-29 12:04:48 +0000
commitb848517ac95380fe6294080bd699b04acadc301e (patch)
treea63c9cad390bdf41ed14a7b4c1d336b2dea4f786 /android_webview/crash_reporter
parentdb6a0533e143a67ae8e58b4077482228a43c10eb (diff)
downloadchromium_src-b848517ac95380fe6294080bd699b04acadc301e.zip
chromium_src-b848517ac95380fe6294080bd699b04acadc301e.tar.gz
chromium_src-b848517ac95380fe6294080bd699b04acadc301e.tar.bz2
Add GPU fingerprint information to breakpad microdumps.
Although strictly the GPU fingerprint is defined by the build fingerprint, there is not currently a straightforward mapping from build fingerprint to useful GPU / GL driver information. In order to aid debugging of WebView crashes that occur in GL drivers, and to better understand the range of drivers and versions for feature blacklisting purposes, it is useful to have GPU fingerprints in breakpad microdumps. BUG= Review URL: https://codereview.chromium.org/1343713002 Cr-Commit-Position: refs/heads/master@{#351289}
Diffstat (limited to 'android_webview/crash_reporter')
-rw-r--r--android_webview/crash_reporter/aw_microdump_crash_reporter.cc5
-rw-r--r--android_webview/crash_reporter/aw_microdump_crash_reporter.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/android_webview/crash_reporter/aw_microdump_crash_reporter.cc b/android_webview/crash_reporter/aw_microdump_crash_reporter.cc
index a95aaf9..ce94174 100644
--- a/android_webview/crash_reporter/aw_microdump_crash_reporter.cc
+++ b/android_webview/crash_reporter/aw_microdump_crash_reporter.cc
@@ -115,5 +115,10 @@ void EnableMicrodumpCrashReporter() {
g_enabled = true;
}
+void AddGpuFingerprintToMicrodumpCrashHandler(
+ const std::string& gpu_fingerprint) {
+ breakpad::AddGpuFingerprintToMicrodumpCrashHandler(gpu_fingerprint);
+}
+
} // namespace crash_reporter
} // namespace android_webview
diff --git a/android_webview/crash_reporter/aw_microdump_crash_reporter.h b/android_webview/crash_reporter/aw_microdump_crash_reporter.h
index 5176b31..5fcda99 100644
--- a/android_webview/crash_reporter/aw_microdump_crash_reporter.h
+++ b/android_webview/crash_reporter/aw_microdump_crash_reporter.h
@@ -5,10 +5,14 @@
#ifndef ANDROID_WEBVIEW_CRASH_REPORTER_AW_MICRODUMP_CRASH_REPORTER_H_
#define ANDROID_WEBVIEW_CRASH_REPORTER_AW_MICRODUMP_CRASH_REPORTER_H_
+#include <string>
+
namespace android_webview {
namespace crash_reporter {
void EnableMicrodumpCrashReporter();
+void AddGpuFingerprintToMicrodumpCrashHandler(
+ const std::string& gpu_fingerprint);
} // namespace crash_reporter
} // namespace android_webview