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