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

Unified Diff: gpu/ipc/client/gpu_channel_host.h

Issue 2197613003: gpu: Introduce GpuChannelEstablishFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot merge Created 4 years, 4 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
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | services/ui/common/gpu_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/gpu_channel_host.h
diff --git a/gpu/ipc/client/gpu_channel_host.h b/gpu/ipc/client/gpu_channel_host.h
index 94fb98d71d6670bdf74bb0ce880a112b878d56db..733a7e41a5e35f1d5a4f00828f22417ee3a1277b 100644
--- a/gpu/ipc/client/gpu_channel_host.h
+++ b/gpu/ipc/client/gpu_channel_host.h
@@ -43,6 +43,19 @@ class GpuMemoryBufferManager;
namespace gpu {
+class GpuChannelHost;
+using GpuChannelEstablishedCallback =
+ base::Callback<void(scoped_refptr<GpuChannelHost>)>;
+
+class GPU_EXPORT GpuChannelEstablishFactory {
+ public:
+ virtual ~GpuChannelEstablishFactory() {}
+
+ virtual void EstablishGpuChannel(
+ const GpuChannelEstablishedCallback& callback) = 0;
+ virtual scoped_refptr<GpuChannelHost> EstablishGpuChannelSync() = 0;
+};
+
class GPU_EXPORT GpuChannelHostFactory {
public:
virtual ~GpuChannelHostFactory() {}
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | services/ui/common/gpu_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698