| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 371 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 372 int /*severity*/, | 372 int /*severity*/, |
| 373 std::string /* header */, | 373 std::string /* header */, |
| 374 std::string /* message */) | 374 std::string /* message */) |
| 375 | 375 |
| 376 // Tells the browser that a new accelerated surface was initialized. | 376 // Tells the browser that a new accelerated surface was initialized. |
| 377 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized, | 377 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized, |
| 378 int32 /* surface_id */, | 378 int32 /* surface_id */, |
| 379 int32 /* route_id */) | 379 int32 /* route_id */) |
| 380 | 380 |
| 381 // Tells the browser that a frame with the specific latency info was drawn to | |
| 382 // the screen | |
| 383 IPC_MESSAGE_CONTROL1(GpuHostMsg_FrameDrawn, | |
| 384 std::vector<ui::LatencyInfo> /* latency_info */) | |
| 385 | |
| 386 // Same as above with a rect of the part of the surface that changed. | 381 // Same as above with a rect of the part of the surface that changed. |
| 387 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, | 382 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, |
| 388 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 383 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
| 389 | 384 |
| 390 // Tells the browser about updated parameters for vsync alignment. | 385 // Tells the browser about updated parameters for vsync alignment. |
| 391 IPC_MESSAGE_CONTROL3(GpuHostMsg_UpdateVSyncParameters, | 386 IPC_MESSAGE_CONTROL3(GpuHostMsg_UpdateVSyncParameters, |
| 392 int32 /* surface_id */, | 387 int32 /* surface_id */, |
| 393 base::TimeTicks /* timebase */, | 388 base::TimeTicks /* timebase */, |
| 394 base::TimeDelta /* interval */) | 389 base::TimeDelta /* interval */) |
| 395 | 390 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 media::VideoCodecProfile /* output_profile */, | 536 media::VideoCodecProfile /* output_profile */, |
| 542 uint32 /* initial_bitrate */, | 537 uint32 /* initial_bitrate */, |
| 543 int32, /* route_id */ | 538 int32, /* route_id */ |
| 544 bool /* succeeded */) | 539 bool /* succeeded */) |
| 545 | 540 |
| 546 // Tells the proxy that there was an error and the command buffer had to be | 541 // Tells the proxy that there was an error and the command buffer had to be |
| 547 // destroyed for some reason. | 542 // destroyed for some reason. |
| 548 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, | 543 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, |
| 549 gpu::error::ContextLostReason /* reason */) | 544 gpu::error::ContextLostReason /* reason */) |
| 550 | 545 |
| 546 // Tells the browser that SwapBuffers returned and passes latency info |
| 547 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SwapBuffersCompleted, |
| 548 std::vector<ui::LatencyInfo> /* latency_info */) |
| 549 |
| 551 // Send to stub on surface visibility change. | 550 // Send to stub on surface visibility change. |
| 552 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) | 551 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) |
| 553 | 552 |
| 554 // Sent to proxy when the gpu memory manager changes its memory allocation. | 553 // Sent to proxy when the gpu memory manager changes its memory allocation. |
| 555 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation, | 554 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation, |
| 556 gpu::MemoryAllocation /* allocation */) | 555 gpu::MemoryAllocation /* allocation */) |
| 557 | 556 |
| 558 // Sent to stub when proxy is assigned a memory allocation changed callback. | 557 // Sent to stub when proxy is assigned a memory allocation changed callback. |
| 559 IPC_MESSAGE_ROUTED1( | 558 IPC_MESSAGE_ROUTED1( |
| 560 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback, | 559 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback, |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 int32 /* bitstream_buffer_id */, | 723 int32 /* bitstream_buffer_id */, |
| 725 uint32 /* payload_size */, | 724 uint32 /* payload_size */, |
| 726 bool /* key_frame */) | 725 bool /* key_frame */) |
| 727 | 726 |
| 728 // Report error condition. | 727 // Report error condition. |
| 729 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 728 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 730 media::VideoEncodeAccelerator::Error /* error */) | 729 media::VideoEncodeAccelerator::Error /* error */) |
| 731 | 730 |
| 732 // Send destroy request to the encoder. | 731 // Send destroy request to the encoder. |
| 733 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 732 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |