| 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 245e330224d8da6ce54a8b456b05de002f2ff642..e8a0d94ae93014b7fb5ca3a4ead9a21a70172711 100644
|
| --- a/content/browser/gpu/gpu_process_host.h
|
| +++ b/content/browser/gpu/gpu_process_host.h
|
| @@ -74,6 +74,9 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
|
| typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
|
| CreateGpuMemoryBufferCallback;
|
|
|
| + typedef base::Callback<void(const IPC::ChannelHandle&)>
|
| + CreateArcVideoAcceleratorChannelCallback;
|
| +
|
| static bool gpu_enabled() { return gpu_enabled_; }
|
| static int gpu_crash_count() { return gpu_crash_count_; }
|
|
|
| @@ -154,6 +157,11 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
|
| int client_id,
|
| const gpu::SyncToken& sync_token);
|
|
|
| + // Tells the GPU process to create a new ipc channel for
|
| + // ArcVideoAccelerator.
|
| + void CreateArcVideoAcceleratorChannel(
|
| + const CreateArcVideoAcceleratorChannelCallback& callback);
|
| +
|
| // What kind of GPU process, e.g. sandboxed or unsandboxed.
|
| GpuProcessKind kind();
|
|
|
| @@ -196,6 +204,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
|
| void OnChannelEstablished(const IPC::ChannelHandle& channel_handle);
|
| void OnCommandBufferCreated(CreateCommandBufferResult result);
|
| void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
|
| + void OnArcVideoAcceleratorChannelCreated(const IPC::ChannelHandle& handle);
|
| void OnDidCreateOffscreenContext(const GURL& url);
|
| void OnDidLoseContext(bool offscreen,
|
| gpu::error::ContextLostReason reason,
|
| @@ -235,6 +244,11 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
|
| // The pending create gpu memory buffer requests we need to reply to.
|
| std::queue<CreateGpuMemoryBufferCallback> create_gpu_memory_buffer_requests_;
|
|
|
| + // The pending create arc video accelerator channel requests we need to reply
|
| + // to.
|
| + std::queue<CreateArcVideoAcceleratorChannelCallback>
|
| + create_arc_video_accelerator_channel_requests_;
|
| +
|
| // Qeueud messages to send when the process launches.
|
| std::queue<IPC::Message*> queued_messages_;
|
|
|
|
|