| 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_;
|
| }
|
|
|