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

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

Issue 2459973002: Expedite discovery of primary DRM device. (Closed)
Patch Set: Fix unused-function warning on non-ozone platforms. Created 4 years, 1 month 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.h
diff --git a/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h b/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h
index 2cc4a176f43b43070190032033f8a8e1fe196a5e..8694db34a5bdffacb0ed55c17ec25e1b62c8b872 100644
--- a/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h
+++ b/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h
@@ -36,10 +36,11 @@ class DrmGpuPlatformSupportHost : public GpuPlatformSupportHost,
~DrmGpuPlatformSupportHost() override;
// GpuPlatformSupportHost:
- void OnChannelEstablished(
+ void OnGpuProcessLaunched(
int host_id,
scoped_refptr<base::SingleThreadTaskRunner> send_runner,
const base::Callback<void(IPC::Message*)>& send_callback) override;
+ void OnChannelEstablished() override;
void OnChannelDestroyed(int host_id) override;
// IPC::Listener:
@@ -109,7 +110,10 @@ class DrmGpuPlatformSupportHost : public GpuPlatformSupportHost,
void OnOverlayResult(gfx::AcceleratedWidget widget,
const std::vector<OverlayCheck_Params>& params);
+ bool SendInternal(IPC::Message* message, bool needChannelEstablished);
+
int host_id_ = -1;
+ bool channel_established_ = false;
scoped_refptr<base::SingleThreadTaskRunner> send_runner_;
base::Callback<void(IPC::Message*)> send_callback_;

Powered by Google App Engine
This is Rietveld 408576698