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

Unified Diff: content/gpu/gpu_memory_buffer_service_ipc_transport.h

Issue 1656433002: Sample code: IPC Transport object for GPU Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GpuMemoryBufferService + Transport object. TODO: Eliminate ChildThreadImpl dependency Created 4 years, 10 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/gpu/gpu_memory_buffer_service.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_memory_buffer_service_ipc_transport.h
diff --git a/content/gpu/gpu_memory_buffer_service_ipc_transport.h b/content/gpu/gpu_memory_buffer_service_ipc_transport.h
new file mode 100644
index 0000000000000000000000000000000000000000..72fc0cec42cb1edcf47ce61d207abded3ffc4cf1
--- /dev/null
+++ b/content/gpu/gpu_memory_buffer_service_ipc_transport.h
@@ -0,0 +1,43 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_GPU_GPU_MEMORY_BUFFER_SERVICE_IPC_TRANSPORT_H_
+#define CONTENT_GPU_GPU_MEMORY_BUFFER_SERVICE_IPC_TRANSPORT_H_
+
+namespace gfx {
+struct GpuMemoryBufferHandle;
+}
+
+namespace content {
+
+struct CreateGpuMemoryBufferFromHandleParams;
+struct CreateGpuMemoryBufferParams;
+
+class GpuMemoryBufferServiceIPCTransport {
+ public:
+ class Client {
+ public:
+ virtual void OnConnectionClosed() = 0;
+
+ virtual void OnCreateGpuMemoryBuffer(
+ const CreateGpuMemoryBufferParams& params) = 0;
+
+ virtual void OnCreateGpuMemoryBufferFromHandle(
+ const CreateGpuMemoryBufferFromHandleParams& params) = 0;
+
+ protected:
+ virtual ~Client() {}
+ };
+
+ virtual ~GpuMemoryBufferServiceIPCTransport() {}
+
+ virtual bool GpuMemoryBufferCreated(
+ const gfx::GpuMemoryBufferHandle& handle) = 0;
+
+ virtual void SetClient(Client* client) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_GPU_GPU_MEMORY_BUFFER_SERVICE_IPC_TRANSPORT_H_
« no previous file with comments | « content/gpu/gpu_memory_buffer_service.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698