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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 const gfx::GLSurfaceHandle& compositing_surface, | 121 const gfx::GLSurfaceHandle& compositing_surface, |
122 int surface_id, | 122 int surface_id, |
123 int client_id, | 123 int client_id, |
124 const GPUCreateCommandBufferConfig& init_params, | 124 const GPUCreateCommandBufferConfig& init_params, |
125 int route_id, | 125 int route_id, |
126 const CreateCommandBufferCallback& callback); | 126 const CreateCommandBufferCallback& callback); |
127 | 127 |
128 // Tells the GPU process to create a new GPU memory buffer. | 128 // Tells the GPU process to create a new GPU memory buffer. |
129 void CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 129 void CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
130 const gfx::Size& size, | 130 const gfx::Size& size, |
131 gfx::GpuMemoryBuffer::Format format, | 131 gfx::BufferFormat format, |
132 gfx::GpuMemoryBuffer::Usage usage, | 132 gfx::BufferUsage usage, |
133 int client_id, | 133 int client_id, |
134 int32 surface_id, | 134 int32 surface_id, |
135 const CreateGpuMemoryBufferCallback& callback); | 135 const CreateGpuMemoryBufferCallback& callback); |
136 | 136 |
137 // Tells the GPU process to destroy GPU memory buffer. | 137 // Tells the GPU process to destroy GPU memory buffer. |
138 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 138 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
139 int client_id, | 139 int client_id, |
140 int sync_point); | 140 int sync_point); |
141 | 141 |
142 // What kind of GPU process, e.g. sandboxed or unsandboxed. | 142 // What kind of GPU process, e.g. sandboxed or unsandboxed. |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 // IOSurfaces. | 294 // IOSurfaces. |
295 IOSurfaceManagerToken io_surface_manager_token_; | 295 IOSurfaceManagerToken io_surface_manager_token_; |
296 #endif | 296 #endif |
297 | 297 |
298 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 298 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
299 }; | 299 }; |
300 | 300 |
301 } // namespace content | 301 } // namespace content |
302 | 302 |
303 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 303 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |