| Index: content/browser/gpu/gpu_process_host.h
|
| diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
|
| index 7df522a80b6c87619432e93ae66af269643e03a4..40e06f909f46b81244002d57a8254094483a4e6f 100644
|
| --- a/content/browser/gpu/gpu_process_host.h
|
| +++ b/content/browser/gpu/gpu_process_host.h
|
| @@ -67,6 +67,8 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
|
| typedef base::Callback<void(CreateCommandBufferResult)>
|
| CreateCommandBufferCallback;
|
|
|
| + typedef base::Callback<void(bool)> CreateStreamTextureCallback;
|
| +
|
| typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
|
| CreateGpuMemoryBufferCallback;
|
|
|
| @@ -124,6 +126,12 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
|
| int route_id,
|
| const CreateCommandBufferCallback& callback);
|
|
|
| + void CreateStreamTexture(int32 image_id,
|
| + int client_id,
|
| + int32 route_id,
|
| + int32 stream_id,
|
| + const CreateStreamTextureCallback& callback);
|
| +
|
| // Tells the GPU process to create a new GPU memory buffer.
|
| void CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
|
| const gfx::Size& size,
|
| @@ -170,6 +178,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
|
| void OnInitialized(bool result, const gpu::GPUInfo& gpu_info);
|
| void OnChannelEstablished(const IPC::ChannelHandle& channel_handle);
|
| void OnCommandBufferCreated(CreateCommandBufferResult result);
|
| + void OnStreamTextureCreated(bool result);
|
| void OnDestroyCommandBuffer(int32 surface_id);
|
| void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
|
| void OnDidCreateOffscreenContext(const GURL& url);
|
| @@ -208,6 +217,9 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
|
| // The pending create command buffer requests we need to reply to.
|
| std::queue<CreateCommandBufferCallback> create_command_buffer_requests_;
|
|
|
| + // The pending create command buffer requests we need to reply to.
|
| + std::queue<CreateStreamTextureCallback> create_stream_texture_requests_;
|
| +
|
| // The pending create gpu memory buffer requests we need to reply to.
|
| std::queue<CreateGpuMemoryBufferCallback> create_gpu_memory_buffer_requests_;
|
|
|
|
|