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

Unified Diff: src/client/linux/handler/minidump_descriptor.h

Issue 1334473003: Add GPU fingerprint information to breakpad microdumps. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 5 years, 3 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
Index: src/client/linux/handler/minidump_descriptor.h
diff --git a/src/client/linux/handler/minidump_descriptor.h b/src/client/linux/handler/minidump_descriptor.h
index 3584c6922a34f885f7cf510e372fdce460a9cf27..d69d8e721cef51deb96479c44c5a715e03ebd31c 100644
--- a/src/client/linux/handler/minidump_descriptor.h
+++ b/src/client/linux/handler/minidump_descriptor.h
@@ -53,7 +53,8 @@ class MinidumpDescriptor {
fd_(-1),
size_limit_(-1),
microdump_build_fingerprint_(NULL),
- microdump_product_info_(NULL) {}
+ microdump_product_info_(NULL),
+ microdump_gpu_fingerprint_(NULL) {}
explicit MinidumpDescriptor(const string& directory)
: mode_(kWriteMinidumpToFile),
@@ -62,7 +63,8 @@ class MinidumpDescriptor {
c_path_(NULL),
size_limit_(-1),
microdump_build_fingerprint_(NULL),
- microdump_product_info_(NULL) {
+ microdump_product_info_(NULL),
+ microdump_gpu_fingerprint_(NULL) {
assert(!directory.empty());
}
@@ -72,7 +74,8 @@ class MinidumpDescriptor {
c_path_(NULL),
size_limit_(-1),
microdump_build_fingerprint_(NULL),
- microdump_product_info_(NULL) {
+ microdump_product_info_(NULL),
+ microdump_gpu_fingerprint_(NULL) {
assert(fd != -1);
}
@@ -81,7 +84,8 @@ class MinidumpDescriptor {
fd_(-1),
size_limit_(-1),
microdump_build_fingerprint_(NULL),
- microdump_product_info_(NULL) {}
+ microdump_product_info_(NULL),
+ microdump_gpu_fingerprint_(NULL) {}
explicit MinidumpDescriptor(const MinidumpDescriptor& descriptor);
MinidumpDescriptor& operator=(const MinidumpDescriptor& descriptor);
@@ -119,6 +123,11 @@ class MinidumpDescriptor {
return microdump_product_info_;
}
+ void SetMicrodumpGPUFingerprint(const char* gpu_fingerprint);
Primiano Tucci (use gerrit) 2015/09/09 18:59:34 At this point feels like we should just have one m
Tobias Sargeant 2015/09/10 10:45:04 Done.
+ const char* microdump_gpu_fingerprint() const {
+ return microdump_gpu_fingerprint_;
+ }
+
private:
enum DumpMode {
kUninitialized = 0,
@@ -154,6 +163,7 @@ class MinidumpDescriptor {
// global static storage).
const char* microdump_build_fingerprint_;
const char* microdump_product_info_;
+ const char* microdump_gpu_fingerprint_;
};
} // namespace google_breakpad

Powered by Google App Engine
This is Rietveld 408576698