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

Unified Diff: android_webview/common/aw_content_client.cc

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 | « no previous file | chrome/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/common/aw_content_client.cc
diff --git a/android_webview/common/aw_content_client.cc b/android_webview/common/aw_content_client.cc
index 99258489eb7623bb250d21c2aabbed13520cf3e5..f686cf4f8fb3b933d78f811f5069f27e6f21fcbe 100644
--- a/android_webview/common/aw_content_client.cc
+++ b/android_webview/common/aw_content_client.cc
@@ -14,6 +14,7 @@
#include "content/public/common/content_switches.h"
#include "content/public/common/user_agent.h"
#include "gpu/config/gpu_info.h"
+#include "gpu/config/gpu_util.h"
#include "ipc/ipc_message.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -83,14 +84,7 @@ void AwContentClient::SetGpuInfo(const gpu::GPUInfo& gpu_info) {
std::replace_if(gpu_fingerprint_.begin(), gpu_fingerprint_.end(),
[](char c) { return !::isprint(c); }, '_');
- base::debug::SetCrashKeyValue(crash_keys::kGPUDriverVersion,
- gpu_info.driver_version);
- base::debug::SetCrashKeyValue(crash_keys::kGPUPixelShaderVersion,
- gpu_info.pixel_shader_version);
- base::debug::SetCrashKeyValue(crash_keys::kGPUVertexShaderVersion,
- gpu_info.vertex_shader_version);
- base::debug::SetCrashKeyValue(crash_keys::kGPUVendor, gpu_info.gl_vendor);
- base::debug::SetCrashKeyValue(crash_keys::kGPURenderer, gpu_info.gl_renderer);
+ gpu::SetKeysForCrashLogging(gpu_info);
}
bool AwContentClient::UsingSynchronousCompositing() {
« no previous file with comments | « no previous file | chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698