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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_GPU_GPU_MEMORY_BUFFER_SERVICE_IPC_TRANSPORT_H_
6 #define CONTENT_GPU_GPU_MEMORY_BUFFER_SERVICE_IPC_TRANSPORT_H_
7
8 namespace gfx {
9 struct GpuMemoryBufferHandle;
10 }
11
12 namespace content {
13
14 struct CreateGpuMemoryBufferFromHandleParams;
15 struct CreateGpuMemoryBufferParams;
16
17 class GpuMemoryBufferServiceIPCTransport {
18 public:
19 class Client {
20 public:
21 virtual void OnConnectionClosed() = 0;
22
23 virtual void OnCreateGpuMemoryBuffer(
24 const CreateGpuMemoryBufferParams& params) = 0;
25
26 virtual void OnCreateGpuMemoryBufferFromHandle(
27 const CreateGpuMemoryBufferFromHandleParams& params) = 0;
28
29 protected:
30 virtual ~Client() {}
31 };
32
33 virtual ~GpuMemoryBufferServiceIPCTransport() {}
34
35 virtual bool GpuMemoryBufferCreated(
36 const gfx::GpuMemoryBufferHandle& handle) = 0;
37
38 virtual void SetClient(Client* client) = 0;
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_GPU_GPU_MEMORY_BUFFER_SERVICE_IPC_TRANSPORT_H_
OLDNEW
« 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