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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 2763493002: gpu: Use mojom API for recording log messages to the host. (Closed)
Patch Set: add 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
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index c3e043e1b6190f03dbf8c6e6e67165204f26f50e..f502c32ec7a9a29845bac0dcd2fc7db800a8f82f 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -832,9 +832,8 @@ void GpuProcessHost::OnChannelEstablished(
!GpuDataManagerImpl::GetInstance()->GpuAccessAllowed(nullptr)) {
gpu_service_ptr_->CloseChannel(client_id);
callback.Run(IPC::ChannelHandle(), gpu::GPUInfo());
- RouteOnUIThread(
- GpuHostMsg_OnLogMessage(logging::LOG_WARNING, "WARNING",
- "Hardware acceleration is unavailable."));
+ RecordLogMessage(logging::LOG_WARNING, "WARNING",
+ "Hardware acceleration is unavailable.");
return;
}
@@ -1004,6 +1003,12 @@ void GpuProcessHost::StoreShaderToDisk(int32_t client_id,
iter->second->Cache(GetShaderPrefixKey(shader) + ":" + key, shader);
}
+void GpuProcessHost::RecordLogMessage(int32_t severity,
+ const std::string& header,
+ const std::string& message) {
+ GpuDataManagerImpl::GetInstance()->AddLogMessage(severity, header, message);
+}
+
GpuProcessHost::GpuProcessKind GpuProcessHost::kind() {
return kind_;
}

Powered by Google App Engine
This is Rietveld 408576698