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

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: . Created 4 years, 5 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: 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..994f812b229aafeb051647b9b1e1780fd2163029 100644
--- a/gpu/ipc/client/gpu_channel_host.h
+++ b/gpu/ipc/client/gpu_channel_host.h
@@ -43,6 +43,22 @@ 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;
+
+ static void SetInstance(GpuChannelEstablishFactory* instance);
+ static GpuChannelEstablishFactory* GetInstance();
+};
+
class GPU_EXPORT GpuChannelHostFactory {
public:
virtual ~GpuChannelHostFactory() {}

Powered by Google App Engine
This is Rietveld 408576698