| Index: content/common/gpu/client/gpu_channel_host.h
|
| diff --git a/content/common/gpu/client/gpu_channel_host.h b/content/common/gpu/client/gpu_channel_host.h
|
| index 4f5b74f010d3ad22d4ee963a1751d5cf4ace05b1..2de8065dae17b4fe161312a3610969c16ae5a512 100644
|
| --- a/content/common/gpu/client/gpu_channel_host.h
|
| +++ b/content/common/gpu/client/gpu_channel_host.h
|
| @@ -84,6 +84,24 @@ class CONTENT_EXPORT GpuChannelHostFactory {
|
| unsigned usage) = 0;
|
| };
|
|
|
| +class CONTENT_EXPORT GpuChannelHostGpuBufferFactory {
|
| + public:
|
| + typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
|
| + CreateGpuMemoryBufferCallback;
|
| +
|
| + virtual ~GpuChannelHostGpuBufferFactory() {}
|
| +
|
| + virtual void CreateGpuMemoryBuffer(
|
| + size_t width,
|
| + size_t height,
|
| + unsigned internalformat,
|
| + unsigned usage,
|
| + const gfx::GpuMemoryBufferHandle& handle,
|
| + const CreateGpuMemoryBufferCallback& callback) = 0;
|
| + virtual void DeleteGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
|
| + int32 sync_point) = 0;
|
| +};
|
| +
|
| // Encapsulates an IPC channel between the client and one GPU process.
|
| // On the GPU process side there's a corresponding GpuChannel.
|
| // Every method can be called on any thread with a message loop, except for the
|
|
|