OLD | NEW |
(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_ |
OLD | NEW |