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

Unified Diff: ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc

Issue 2459973002: Expedite discovery of primary DRM device. (Closed)
Patch Set: Created 4 years, 2 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
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

Powered by Google App Engine
This is Rietveld 408576698