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

Unified Diff: ui/ozone/public/gpu_platform_support_host.h

Issue 821133006: ozone: Dispatch GPU process IPCs to IO thread directly from GpuPlatformSupportHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/public/gpu_platform_support_host.h
diff --git a/ui/ozone/public/gpu_platform_support_host.h b/ui/ozone/public/gpu_platform_support_host.h
index 252ebe0a3311b76e265c2a83f5468867da29e359..b15b13117c06fa2c8f3383c0272f47726df45726 100644
--- a/ui/ozone/public/gpu_platform_support_host.h
+++ b/ui/ozone/public/gpu_platform_support_host.h
@@ -5,6 +5,8 @@
#ifndef UI_OZONE_PUBLIC_GPU_PLATFORM_SUPPORT_HOST_H_
#define UI_OZONE_PUBLIC_GPU_PLATFORM_SUPPORT_HOST_H_
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "ui/ozone/ozone_base_export.h"
@@ -26,7 +28,10 @@ class OZONE_BASE_EXPORT GpuPlatformSupportHost : public IPC::Listener {
~GpuPlatformSupportHost() override;
// Called when the GPU process is spun up & channel established.
- virtual void OnChannelEstablished(int host_id, IPC::Sender* sender) = 0;
+ virtual void OnChannelEstablished(
+ int host_id,
+ scoped_refptr<base::SingleThreadTaskRunner> send_runner,
+ const base::Callback<void(IPC::Message*)>& sender) = 0;
// Called when the GPU process is destroyed.
virtual void OnChannelDestroyed(int host_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698