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

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

Issue 2820463002: gpu: Completely remove GpuProcessHostUIShim. (Closed)
Patch Set: . Created 3 years, 8 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.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 f446d32bafcd12718cc5a06cdd37dc21f752abcb..37f7e4551ff25e7af1d60f6279565bafd12b31ac 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
@@ -30,15 +30,15 @@ class DrmGpuPlatformSupportHost : public GpuPlatformSupportHost,
public GpuThreadAdapter,
public IPC::Sender {
public:
- DrmGpuPlatformSupportHost(DrmCursor* cursor);
+ explicit DrmGpuPlatformSupportHost(DrmCursor* cursor);
~DrmGpuPlatformSupportHost() override;
// GpuPlatformSupportHost:
void OnGpuProcessLaunched(
int host_id,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_runner,
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:
@@ -95,6 +95,7 @@ class DrmGpuPlatformSupportHost : public GpuPlatformSupportHost,
const gfx::Rect& bounds) override;
private:
+ void OnChannelEstablished();
bool OnMessageReceivedForDrmDisplayHostManager(const IPC::Message& message);
void OnUpdateNativeDisplays(
const std::vector<DisplaySnapshot_Params>& displays);
@@ -113,6 +114,7 @@ class DrmGpuPlatformSupportHost : public GpuPlatformSupportHost,
int host_id_ = -1;
bool channel_established_ = false;
+ scoped_refptr<base::SingleThreadTaskRunner> ui_runner_;
scoped_refptr<base::SingleThreadTaskRunner> send_runner_;
base::Callback<void(IPC::Message*)> send_callback_;
@@ -121,6 +123,9 @@ class DrmGpuPlatformSupportHost : public GpuPlatformSupportHost,
DrmCursor* cursor_; // Not owned.
base::ObserverList<GpuThreadObserver> gpu_thread_observers_;
+
+ base::WeakPtrFactory<DrmGpuPlatformSupportHost> weak_ptr_factory_;
+ DISALLOW_COPY_AND_ASSIGN(DrmGpuPlatformSupportHost);
};
} // namespace ui
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698