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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 544 |
545 // Asynchronously synchronize the put and get offsets of both processes. | 545 // Asynchronously synchronize the put and get offsets of both processes. |
546 // Caller passes its current put offset. Current state (including get offset) | 546 // Caller passes its current put offset. Current state (including get offset) |
547 // is returned in shared memory. The input latency info for the current | 547 // is returned in shared memory. The input latency info for the current |
548 // frame is also sent to the GPU process. | 548 // frame is also sent to the GPU process. |
549 IPC_MESSAGE_ROUTED3(GpuCommandBufferMsg_AsyncFlush, | 549 IPC_MESSAGE_ROUTED3(GpuCommandBufferMsg_AsyncFlush, |
550 int32 /* put_offset */, | 550 int32 /* put_offset */, |
551 uint32 /* flush_count */, | 551 uint32 /* flush_count */, |
552 std::vector<ui::LatencyInfo> /* latency_info */) | 552 std::vector<ui::LatencyInfo> /* latency_info */) |
553 | 553 |
554 // Asynchronously process any commands known to the GPU process. This is only | |
555 // used in the event that a channel is unscheduled and needs to be flushed | |
556 // again to process any commands issued subsequent to unscheduling. The GPU | |
557 // process actually sends it (deferred) to itself. | |
558 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled) | |
559 | |
560 // Sent by the GPU process to display messages in the console. | 554 // Sent by the GPU process to display messages in the console. |
561 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg, | 555 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg, |
562 GPUCommandBufferConsoleMessage /* msg */) | 556 GPUCommandBufferConsoleMessage /* msg */) |
563 | 557 |
564 // Register an existing shared memory transfer buffer. The id that can be | 558 // Register an existing shared memory transfer buffer. The id that can be |
565 // used to identify the transfer buffer from a command buffer. | 559 // used to identify the transfer buffer from a command buffer. |
566 IPC_MESSAGE_ROUTED3(GpuCommandBufferMsg_RegisterTransferBuffer, | 560 IPC_MESSAGE_ROUTED3(GpuCommandBufferMsg_RegisterTransferBuffer, |
567 int32 /* id */, | 561 int32 /* id */, |
568 base::SharedMemoryHandle /* transfer_buffer */, | 562 base::SharedMemoryHandle /* transfer_buffer */, |
569 uint32 /* size */) | 563 uint32 /* size */) |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 bool /* has_callback */) | 614 bool /* has_callback */) |
621 | 615 |
622 // Inserts a sync point into the channel. This is handled on the IO thread, so | 616 // Inserts a sync point into the channel. This is handled on the IO thread, so |
623 // can be expected to be reasonably fast, but the sync point is actually | 617 // can be expected to be reasonably fast, but the sync point is actually |
624 // retired in order with respect to the other calls. The sync point is shared | 618 // retired in order with respect to the other calls. The sync point is shared |
625 // across channels. | 619 // across channels. |
626 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_InsertSyncPoint, | 620 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_InsertSyncPoint, |
627 bool /* retire */, | 621 bool /* retire */, |
628 uint32 /* sync_point */) | 622 uint32 /* sync_point */) |
629 | 623 |
630 // Retires the sync point. Note: this message is not sent explicitly by the | 624 // Retires the sync point. |
631 // renderer, but is synthesized by the GPU process. | |
632 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_RetireSyncPoint, | 625 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_RetireSyncPoint, |
633 uint32 /* sync_point */) | 626 uint32 /* sync_point */) |
634 | 627 |
635 // Makes this command buffer signal when a sync point is reached, by sending | 628 // Makes this command buffer signal when a sync point is reached, by sending |
636 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same | 629 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same |
637 // signal_id. | 630 // signal_id. |
638 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalSyncPoint, | 631 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalSyncPoint, |
639 uint32 /* sync_point */, | 632 uint32 /* sync_point */, |
640 uint32 /* signal_id */) | 633 uint32 /* signal_id */) |
641 | 634 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 799 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
807 | 800 |
808 //------------------------------------------------------------------------------ | 801 //------------------------------------------------------------------------------ |
809 // Accelerated JPEG Decoder Host Messages | 802 // Accelerated JPEG Decoder Host Messages |
810 // These messages are sent from the GPU process to Browser process. | 803 // These messages are sent from the GPU process to Browser process. |
811 // | 804 // |
812 // Report decode status. | 805 // Report decode status. |
813 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 806 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
814 int32, /* bitstream_buffer_id */ | 807 int32, /* bitstream_buffer_id */ |
815 media::JpegDecodeAccelerator::Error /* error */) | 808 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |