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

Unified Diff: gpu/config/gpu_crash_keys.h

Issue 2751103008: gpu: Add a util method to set crash-keys from a GPUInfo. (Closed)
Patch Set: comment Created 3 years, 9 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
« no previous file with comments | « gpu/config/BUILD.gn ('k') | gpu/config/gpu_crash_keys.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_crash_keys.h
diff --git a/gpu/config/gpu_crash_keys.h b/gpu/config/gpu_crash_keys.h
new file mode 100644
index 0000000000000000000000000000000000000000..b7ee75c09c0e3743d2b66b937f65bb2be3cc5b72
--- /dev/null
+++ b/gpu/config/gpu_crash_keys.h
@@ -0,0 +1,30 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GPU_CONFIG_GPU_CRASH_KEYS_H_
+#define GPU_CONFIG_GPU_CRASH_KEYS_H_
+
+#include "build/build_config.h"
+
+namespace gpu {
+namespace crash_keys {
+
+// Keys that can be used for crash reporting.
+#if !defined(OS_ANDROID)
+extern const char kGPUVendorID[];
+extern const char kGPUDeviceID[];
+#endif
+extern const char kGPUDriverVersion[];
+extern const char kGPUPixelShaderVersion[];
+extern const char kGPUVertexShaderVersion[];
+#if defined(OS_MACOSX)
+extern const char kGPUGLVersion[];
+#elif defined(OS_POSIX)
+extern const char kGPUVendor[];
+extern const char kGPURenderer[];
+#endif
+} // namespace crash_keys
+} // namespace gpu
+
+#endif // GPU_CONFIG_GPU_CRASH_KEYS_H_
« no previous file with comments | « gpu/config/BUILD.gn ('k') | gpu/config/gpu_crash_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698