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