| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Tells the GPU process to create a new GPU memory buffer. | 131 // Tells the GPU process to create a new GPU memory buffer. |
| 132 void CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 132 void CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
| 133 const gfx::Size& size, | 133 const gfx::Size& size, |
| 134 gfx::BufferFormat format, | 134 gfx::BufferFormat format, |
| 135 gfx::BufferUsage usage, | 135 gfx::BufferUsage usage, |
| 136 int client_id, | 136 int client_id, |
| 137 int32_t surface_id, | 137 int32_t surface_id, |
| 138 const CreateGpuMemoryBufferCallback& callback); | 138 const CreateGpuMemoryBufferCallback& callback); |
| 139 | 139 |
| 140 // Tells the GPU process to create a new GPU memory buffer from an existing | |
| 141 // handle. | |
| 142 void CreateGpuMemoryBufferFromHandle( | |
| 143 const gfx::GpuMemoryBufferHandle& handle, | |
| 144 gfx::GpuMemoryBufferId id, | |
| 145 const gfx::Size& size, | |
| 146 gfx::BufferFormat format, | |
| 147 int client_id, | |
| 148 const CreateGpuMemoryBufferCallback& callback); | |
| 149 | |
| 150 // Tells the GPU process to destroy GPU memory buffer. | 140 // Tells the GPU process to destroy GPU memory buffer. |
| 151 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 141 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
| 152 int client_id, | 142 int client_id, |
| 153 const gpu::SyncToken& sync_token); | 143 const gpu::SyncToken& sync_token); |
| 154 | 144 |
| 155 // What kind of GPU process, e.g. sandboxed or unsandboxed. | 145 // What kind of GPU process, e.g. sandboxed or unsandboxed. |
| 156 GpuProcessKind kind(); | 146 GpuProcessKind kind(); |
| 157 | 147 |
| 158 // Forcefully terminates the GPU process. | 148 // Forcefully terminates the GPU process. |
| 159 void ForceShutdown(); | 149 void ForceShutdown(); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 283 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
| 294 // process and contains the browser's ServiceRegistry. | 284 // process and contains the browser's ServiceRegistry. |
| 295 scoped_ptr<MojoApplicationHost> mojo_application_host_; | 285 scoped_ptr<MojoApplicationHost> mojo_application_host_; |
| 296 | 286 |
| 297 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 287 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 298 }; | 288 }; |
| 299 | 289 |
| 300 } // namespace content | 290 } // namespace content |
| 301 | 291 |
| 302 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 292 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |