| Index: content/browser/gpu/gpu_data_manager_impl_private.cc
|
| diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
|
| index cdf3e392e9c18041ec067ba2850b7eb2e335c86a..e3322a78337a4fbf0da6402d6e979c96b458e726 100644
|
| --- a/content/browser/gpu/gpu_data_manager_impl_private.cc
|
| +++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
|
| @@ -1028,8 +1028,12 @@ void GpuDataManagerImplPrivate::HandleGpuSwitch() {
|
| // Notify observers in the browser process.
|
| ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched();
|
| // Pass the notification to the GPU process to notify observers there.
|
| - GpuProcessHost::SendOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
|
| - false /* force_create */, new GpuMsg_GpuSwitched);
|
| + GpuProcessHost::CallOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
|
| + false /* force_create */,
|
| + base::Bind([](GpuProcessHost* host) {
|
| + if (host)
|
| + host->gpu_service()->GpuSwitched();
|
| + }));
|
| }
|
|
|
| bool GpuDataManagerImplPrivate::UpdateActiveGpu(uint32_t vendor_id,
|
|
|