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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 IPC_STRUCT_TRAITS_MEMBER(gl_extensions) | 155 IPC_STRUCT_TRAITS_MEMBER(gl_extensions) |
156 IPC_STRUCT_TRAITS_MEMBER(can_lose_context) | 156 IPC_STRUCT_TRAITS_MEMBER(can_lose_context) |
157 IPC_STRUCT_TRAITS_MEMBER(gpu_accessible) | 157 IPC_STRUCT_TRAITS_MEMBER(gpu_accessible) |
158 IPC_STRUCT_TRAITS_MEMBER(performance_stats) | 158 IPC_STRUCT_TRAITS_MEMBER(performance_stats) |
159 IPC_STRUCT_TRAITS_MEMBER(software_rendering) | 159 IPC_STRUCT_TRAITS_MEMBER(software_rendering) |
160 #if defined(OS_WIN) | 160 #if defined(OS_WIN) |
161 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics) | 161 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics) |
162 #endif | 162 #endif |
163 IPC_STRUCT_TRAITS_END() | 163 IPC_STRUCT_TRAITS_END() |
164 | 164 |
| 165 IPC_STRUCT_TRAITS_BEGIN(content::GPUVidmem::GPUProcessVidmem) |
| 166 IPC_STRUCT_TRAITS_MEMBER(vidmem) |
| 167 IPC_STRUCT_TRAITS_MEMBER(has_duplicates) |
| 168 IPC_STRUCT_TRAITS_END() |
| 169 |
| 170 IPC_STRUCT_TRAITS_BEGIN(content::GPUVidmem) |
| 171 IPC_STRUCT_TRAITS_MEMBER(process_map) |
| 172 IPC_STRUCT_TRAITS_END() |
| 173 |
165 IPC_STRUCT_TRAITS_BEGIN(GpuMemoryAllocationForRenderer) | 174 IPC_STRUCT_TRAITS_BEGIN(GpuMemoryAllocationForRenderer) |
166 IPC_STRUCT_TRAITS_MEMBER(gpu_resource_size_in_bytes) | 175 IPC_STRUCT_TRAITS_MEMBER(gpu_resource_size_in_bytes) |
167 IPC_STRUCT_TRAITS_MEMBER(suggest_have_backbuffer) | 176 IPC_STRUCT_TRAITS_MEMBER(suggest_have_backbuffer) |
168 IPC_STRUCT_TRAITS_END() | 177 IPC_STRUCT_TRAITS_END() |
169 | 178 |
170 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) | 179 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) |
171 IPC_STRUCT_TRAITS_MEMBER(handle) | 180 IPC_STRUCT_TRAITS_MEMBER(handle) |
172 IPC_STRUCT_TRAITS_MEMBER(transport) | 181 IPC_STRUCT_TRAITS_MEMBER(transport) |
173 IPC_STRUCT_TRAITS_MEMBER(parent_gpu_process_id) | 182 IPC_STRUCT_TRAITS_MEMBER(parent_gpu_process_id) |
174 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) | 183 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, | 223 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, |
215 gfx::GLSurfaceHandle, /* compositing_surface */ | 224 gfx::GLSurfaceHandle, /* compositing_surface */ |
216 int32, /* surface_id */ | 225 int32, /* surface_id */ |
217 int32, /* client_id */ | 226 int32, /* client_id */ |
218 GPUCreateCommandBufferConfig /* init_params */) | 227 GPUCreateCommandBufferConfig /* init_params */) |
219 | 228 |
220 // Tells the GPU process to create a context for collecting graphics card | 229 // Tells the GPU process to create a context for collecting graphics card |
221 // information. | 230 // information. |
222 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 231 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
223 | 232 |
| 233 // Tells the GPU process to report vidmem information for the task manager |
| 234 IPC_MESSAGE_CONTROL0(GpuMsg_GetVidmem) |
| 235 |
224 // Tells the GPU process that the browser process has finished resizing the | 236 // Tells the GPU process that the browser process has finished resizing the |
225 // view. | 237 // view. |
226 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) | 238 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) |
227 | 239 |
228 // Tells the GPU process if it's worth suggesting release of the front surface. | 240 // Tells the GPU process if it's worth suggesting release of the front surface. |
229 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected, | 241 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected, |
230 bool /* is_protected */, | 242 bool /* is_protected */, |
231 uint32 /* protection_state_id */) | 243 uint32 /* protection_state_id */) |
232 | 244 |
233 // Tells the GPU process that the browser process has handled the swap | 245 // Tells the GPU process that the browser process has handled the swap |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 287 |
276 // Request from GPU to free the browser resources associated with the | 288 // Request from GPU to free the browser resources associated with the |
277 // command buffer. | 289 // command buffer. |
278 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, | 290 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
279 int32 /* surface_id */) | 291 int32 /* surface_id */) |
280 | 292 |
281 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 293 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
282 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 294 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
283 content::GPUInfo /* GPU logging stats */) | 295 content::GPUInfo /* GPU logging stats */) |
284 | 296 |
| 297 // Response from GPU to a GpuMsg_GetVidmem. |
| 298 IPC_MESSAGE_CONTROL1(GpuHostMsg_Vidmem, |
| 299 content::GPUVidmem /* GPU memory usage stats */) |
| 300 |
285 // Message from GPU to add a GPU log message to the about:gpu page. | 301 // Message from GPU to add a GPU log message to the about:gpu page. |
286 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 302 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
287 int /*severity*/, | 303 int /*severity*/, |
288 std::string /* header */, | 304 std::string /* header */, |
289 std::string /* message */) | 305 std::string /* message */) |
290 | 306 |
291 // Resize the window that is being drawn into. It's important that this | 307 // Resize the window that is being drawn into. It's important that this |
292 // resize be synchronized with the swapping of the front and back buffers. | 308 // resize be synchronized with the swapping of the front and back buffers. |
293 IPC_MESSAGE_CONTROL3(GpuHostMsg_ResizeView, | 309 IPC_MESSAGE_CONTROL3(GpuHostMsg_ResizeView, |
294 int32 /* surface_id */, | 310 int32 /* surface_id */, |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 | 604 |
589 // Confirm decoder has been flushed. | 605 // Confirm decoder has been flushed. |
590 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 606 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
591 | 607 |
592 // Confirm decoder has been reset. | 608 // Confirm decoder has been reset. |
593 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 609 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
594 | 610 |
595 // Video decoder has encountered an error. | 611 // Video decoder has encountered an error. |
596 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 612 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
597 uint32) /* Error ID */ | 613 uint32) /* Error ID */ |
OLD | NEW |