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

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: . 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 | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/gpu/gpu_process_host_ui_shim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 238854efbb490dba4f5d71bdc125f10c06ef0f52..2fa1c8624eb583f915608699b01455f43123b536 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -831,9 +831,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;
}
@@ -1003,6 +1002,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_;
}
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/gpu/gpu_process_host_ui_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698