OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 static GpuProcessHost* FromID(int host_id); | 61 static GpuProcessHost* FromID(int host_id); |
62 int host_id() const { return host_id_; } | 62 int host_id() const { return host_id_; } |
63 | 63 |
64 // IPC::Message::Sender implementation. | 64 // IPC::Message::Sender implementation. |
65 virtual bool Send(IPC::Message* msg) OVERRIDE; | 65 virtual bool Send(IPC::Message* msg) OVERRIDE; |
66 | 66 |
67 // Tells the GPU process to create a new channel for communication with a | 67 // Tells the GPU process to create a new channel for communication with a |
68 // client. Once the GPU process responds asynchronously with the IPC handle | 68 // client. Once the GPU process responds asynchronously with the IPC handle |
69 // and GPUInfo, we call the callback. | 69 // and GPUInfo, we call the callback. |
70 void EstablishGpuChannel(int client_id, | 70 void EstablishGpuChannel(int client_id, |
71 int share_client_id, | 71 bool share_context, |
72 const EstablishChannelCallback& callback); | 72 const EstablishChannelCallback& callback); |
73 | 73 |
74 // Tells the GPU process to create a new command buffer that draws into the | 74 // Tells the GPU process to create a new command buffer that draws into the |
75 // given surface. | 75 // given surface. |
76 void CreateViewCommandBuffer( | 76 void CreateViewCommandBuffer( |
77 const gfx::GLSurfaceHandle& compositing_surface, | 77 const gfx::GLSurfaceHandle& compositing_surface, |
78 int surface_id, | 78 int surface_id, |
79 int client_id, | 79 int client_id, |
80 const GPUCreateCommandBufferConfig& init_params, | 80 const GPUCreateCommandBufferConfig& init_params, |
81 const CreateCommandBufferCallback& callback); | 81 const CreateCommandBufferCallback& callback); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 static bool gpu_enabled_; | 175 static bool gpu_enabled_; |
176 | 176 |
177 static bool hardware_gpu_enabled_; | 177 static bool hardware_gpu_enabled_; |
178 | 178 |
179 scoped_ptr<BrowserChildProcessHostImpl> process_; | 179 scoped_ptr<BrowserChildProcessHostImpl> process_; |
180 | 180 |
181 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 181 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
182 }; | 182 }; |
183 | 183 |
184 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 184 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |