| 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_
|
|
|