Chromium Code Reviews| Index: ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc |
| diff --git a/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc b/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc |
| index 75096a0cb8dc615b89ceed60ffcd6e0642afc774..9021440d34598e37529f89b1b495f5709ea8d48e 100644 |
| --- a/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc |
| +++ b/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc |
| @@ -103,17 +103,24 @@ bool DrmGpuPlatformSupportHost::IsConnected() { |
| return host_id_ >= 0; |
| } |
| -void DrmGpuPlatformSupportHost::OnChannelEstablished( |
| +void DrmGpuPlatformSupportHost::OnGpuProcessLaunched( |
| int host_id, |
| scoped_refptr<base::SingleThreadTaskRunner> send_runner, |
| const base::Callback<void(IPC::Message*)>& send_callback) { |
| - TRACE_EVENT1("drm", "DrmGpuPlatformSupportHost::OnChannelEstablished", |
| + TRACE_EVENT1("drm", "DrmGpuPlatformSupportHost::OnGpuProcessLaunched", |
| "host_id", host_id); |
| host_id_ = host_id; |
|
dnicoara
2016/10/28 21:42:54
One of the odd things about GpuProcessHost[UIShim]
dnicoara
2016/10/31 22:01:25
Setting the |host_id_|, |send_runner_| and |send_c
|
| send_runner_ = send_runner; |
| send_callback_ = send_callback; |
| for (GpuThreadObserver& observer : gpu_thread_observers_) |
|
dnicoara
2016/10/28 21:42:54
This is another place where the observer vector is
|
| + observer.OnGpuProcessLaunched(); |
| +} |
| + |
| +void DrmGpuPlatformSupportHost::OnChannelEstablished() { |
| + TRACE_EVENT0("drm", "DrmGpuPlatformSupportHost::OnChannelEstablished"); |
| + |
| + for (GpuThreadObserver& observer : gpu_thread_observers_) |
| observer.OnGpuThreadReady(); |
| // The cursor is special since it will process input events on the IO thread |