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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 22 matching lines...) Expand all Loading... |
33 #if defined(OS_MACOSX) && !defined(OS_IOS) | 33 #if defined(OS_MACOSX) && !defined(OS_IOS) |
34 #include "content/common/mac/io_surface_manager_token.h" | 34 #include "content/common/mac/io_surface_manager_token.h" |
35 #endif | 35 #endif |
36 | 36 |
37 struct GPUCreateCommandBufferConfig; | 37 struct GPUCreateCommandBufferConfig; |
38 | 38 |
39 namespace IPC { | 39 namespace IPC { |
40 struct ChannelHandle; | 40 struct ChannelHandle; |
41 } | 41 } |
42 | 42 |
43 namespace gpu { | |
44 struct SyncToken; | |
45 } | |
46 | |
47 namespace content { | 43 namespace content { |
48 class BrowserChildProcessHostImpl; | 44 class BrowserChildProcessHostImpl; |
49 class GpuMainThread; | 45 class GpuMainThread; |
50 class InProcessChildThreadParams; | 46 class InProcessChildThreadParams; |
51 class MojoApplicationHost; | 47 class MojoApplicationHost; |
52 class RenderWidgetHostViewFrameSubscriber; | 48 class RenderWidgetHostViewFrameSubscriber; |
53 class ShaderDiskCache; | 49 class ShaderDiskCache; |
54 | 50 |
55 typedef base::Thread* (*GpuMainThreadFactoryFunction)( | 51 typedef base::Thread* (*GpuMainThreadFactoryFunction)( |
56 const InProcessChildThreadParams&); | 52 const InProcessChildThreadParams&); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 const gfx::GpuMemoryBufferHandle& handle, | 141 const gfx::GpuMemoryBufferHandle& handle, |
146 gfx::GpuMemoryBufferId id, | 142 gfx::GpuMemoryBufferId id, |
147 const gfx::Size& size, | 143 const gfx::Size& size, |
148 gfx::BufferFormat format, | 144 gfx::BufferFormat format, |
149 int client_id, | 145 int client_id, |
150 const CreateGpuMemoryBufferCallback& callback); | 146 const CreateGpuMemoryBufferCallback& callback); |
151 | 147 |
152 // Tells the GPU process to destroy GPU memory buffer. | 148 // Tells the GPU process to destroy GPU memory buffer. |
153 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 149 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
154 int client_id, | 150 int client_id, |
155 const gpu::SyncToken& sync_token); | 151 int sync_point); |
156 | 152 |
157 // What kind of GPU process, e.g. sandboxed or unsandboxed. | 153 // What kind of GPU process, e.g. sandboxed or unsandboxed. |
158 GpuProcessKind kind(); | 154 GpuProcessKind kind(); |
159 | 155 |
160 // Forcefully terminates the GPU process. | 156 // Forcefully terminates the GPU process. |
161 void ForceShutdown(); | 157 void ForceShutdown(); |
162 | 158 |
163 // Asks the GPU process to stop by itself. | 159 // Asks the GPU process to stop by itself. |
164 void StopGpuProcess(); | 160 void StopGpuProcess(); |
165 | 161 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 295 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
300 // process and contains the browser's ServiceRegistry. | 296 // process and contains the browser's ServiceRegistry. |
301 scoped_ptr<MojoApplicationHost> mojo_application_host_; | 297 scoped_ptr<MojoApplicationHost> mojo_application_host_; |
302 | 298 |
303 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 299 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
304 }; | 300 }; |
305 | 301 |
306 } // namespace content | 302 } // namespace content |
307 | 303 |
308 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 304 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |