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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
275 gfx::PluginWindowHandle, /* window */ | 275 gfx::PluginWindowHandle, /* window */ |
276 int32, /* client_id */ | 276 int32, /* client_id */ |
277 int32 /* image_id */) | 277 int32 /* image_id */) |
278 | 278 |
279 // Tells the GPU process to delete image. | 279 // Tells the GPU process to delete image. |
280 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, | 280 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, |
281 int32, /* client_id */ | 281 int32, /* client_id */ |
282 int32, /* image_id */ | 282 int32, /* image_id */ |
283 int32 /* sync_point */) | 283 int32 /* sync_point */) |
284 | 284 |
285 // Tells the GPU process to create a new gpu memory buffer for |handle|. | |
286 IPC_MESSAGE_CONTROL5(GpuMsg_CreateGpuMemoryBuffer, | |
287 gfx::GpuMemoryBufferHandle, /* handle */ | |
288 size_t, /* width */ | |
289 size_t, /* height */ | |
reveman
2014/06/09 14:35:21
I think this should either be gfx::Size or uint32
| |
290 unsigned, /* internalformat */ | |
291 unsigned /* usage */) | |
292 | |
293 // Tells the GPU process to delete buffer. | |
294 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, | |
295 gfx::GpuMemoryBufferHandle, /* handle */ | |
296 int32 /* sync_point */) | |
297 | |
285 // Tells the GPU process to create a context for collecting graphics card | 298 // Tells the GPU process to create a context for collecting graphics card |
286 // information. | 299 // information. |
287 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 300 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
288 | 301 |
289 // Tells the GPU process to report video_memory information for the task manager | 302 // Tells the GPU process to report video_memory information for the task manager |
290 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) | 303 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) |
291 | 304 |
292 // Tells the GPU process that the browser process has handled the swap | 305 // Tells the GPU process that the browser process has handled the swap |
293 // buffers or post sub-buffer request. A non-zero sync point means | 306 // buffers or post sub-buffer request. A non-zero sync point means |
294 // that we should wait for the sync point. The surface_handle identifies | 307 // that we should wait for the sync point. The surface_handle identifies |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
361 | 374 |
362 // Request from GPU to free the browser resources associated with the | 375 // Request from GPU to free the browser resources associated with the |
363 // command buffer. | 376 // command buffer. |
364 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, | 377 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
365 int32 /* surface_id */) | 378 int32 /* surface_id */) |
366 | 379 |
367 // Response from GPU to a GpuMsg_CreateImage message. | 380 // Response from GPU to a GpuMsg_CreateImage message. |
368 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, | 381 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, |
369 gfx::Size /* size */) | 382 gfx::Size /* size */) |
370 | 383 |
384 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | |
385 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | |
386 gfx::GpuMemoryBufferHandle /* handle */) | |
387 | |
371 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 388 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
372 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 389 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
373 gpu::GPUInfo /* GPU logging stats */) | 390 gpu::GPUInfo /* GPU logging stats */) |
374 | 391 |
375 // Response from GPU to a GpuMsg_GetVideoMemory. | 392 // Response from GPU to a GpuMsg_GetVideoMemory. |
376 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 393 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
377 content::GPUVideoMemoryUsageStats /* GPU memory stats */) | 394 content::GPUVideoMemoryUsageStats /* GPU memory stats */) |
378 | 395 |
379 // Message from GPU to add a GPU log message to the about:gpu page. | 396 // Message from GPU to add a GPU log message to the about:gpu page. |
380 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 397 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
764 int32 /* bitstream_buffer_id */, | 781 int32 /* bitstream_buffer_id */, |
765 uint32 /* payload_size */, | 782 uint32 /* payload_size */, |
766 bool /* key_frame */) | 783 bool /* key_frame */) |
767 | 784 |
768 // Report error condition. | 785 // Report error condition. |
769 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 786 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
770 media::VideoEncodeAccelerator::Error /* error */) | 787 media::VideoEncodeAccelerator::Error /* error */) |
771 | 788 |
772 // Send destroy request to the encoder. | 789 // Send destroy request to the encoder. |
773 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 790 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |