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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 | 498 |
499 #if defined(OS_ANDROID) | 499 #if defined(OS_ANDROID) |
500 //------------------------------------------------------------------------------ | 500 //------------------------------------------------------------------------------ |
501 // Stream Texture Messages | 501 // Stream Texture Messages |
502 // Tells the GPU process create and send the java surface texture object to | 502 // Tells the GPU process create and send the java surface texture object to |
503 // the renderer process through the binder thread. | 503 // the renderer process through the binder thread. |
504 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer, | 504 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer, |
505 int32, /* primary_id */ | 505 int32, /* primary_id */ |
506 int32 /* secondary_id */) | 506 int32 /* secondary_id */) |
507 | 507 |
508 // Tells the GPU process to set the size of StreamTexture from the given | |
509 // stream Id. | |
510 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, | |
511 gfx::Size /* size */) | |
512 | |
513 // Tells the service-side instance to start sending frame available | 508 // Tells the service-side instance to start sending frame available |
514 // notifications. | 509 // notifications. |
515 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) | 510 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) |
516 | 511 |
517 // Inform the renderer that a new frame is available. | 512 // Inform the renderer that a new frame is available. |
518 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) | 513 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) |
519 | 514 |
520 // Inform the renderer process that the transform matrix has changed. | 515 // Inform the renderer process that the transform matrix has changed. |
521 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged, | 516 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged, |
522 GpuStreamTextureMsg_MatrixChanged_Params /* params */) | 517 GpuStreamTextureMsg_MatrixChanged_Params /* params */) |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 // Destroy a previously created image. | 658 // Destroy a previously created image. |
664 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, | 659 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, |
665 int32 /* id */) | 660 int32 /* id */) |
666 | 661 |
667 // Attaches an external image stream to the client texture. | 662 // Attaches an external image stream to the client texture. |
668 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 663 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
669 uint32, /* client_texture_id */ | 664 uint32, /* client_texture_id */ |
670 int32, /* stream_id */ | 665 int32, /* stream_id */ |
671 bool /* succeeded */) | 666 bool /* succeeded */) |
672 | 667 |
| 668 // Set the StreamTexture size for the given |stream_id|. |
| 669 IPC_MESSAGE_ROUTED4(GpuCommandBufferMsg_SetStreamTextureSize, |
| 670 uint32, /* client_texture_id */ |
| 671 int32, /* stream_id */ |
| 672 size_t, /* width */ |
| 673 size_t /* height */) |
| 674 |
673 //------------------------------------------------------------------------------ | 675 //------------------------------------------------------------------------------ |
674 // Accelerated Video Decoder Messages | 676 // Accelerated Video Decoder Messages |
675 // These messages are sent from Renderer process to GPU process. | 677 // These messages are sent from Renderer process to GPU process. |
676 | 678 |
677 // Send input buffer for decoding. | 679 // Send input buffer for decoding. |
678 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode, | 680 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode, |
679 AcceleratedVideoDecoderMsg_Decode_Params) | 681 AcceleratedVideoDecoderMsg_Decode_Params) |
680 | 682 |
681 // Sent from Renderer process to the GPU process to give the texture IDs for | 683 // Sent from Renderer process to the GPU process to give the texture IDs for |
682 // the textures the decoder will use for output. | 684 // the textures the decoder will use for output. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 806 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
805 | 807 |
806 //------------------------------------------------------------------------------ | 808 //------------------------------------------------------------------------------ |
807 // Accelerated JPEG Decoder Host Messages | 809 // Accelerated JPEG Decoder Host Messages |
808 // These messages are sent from the GPU process to Browser process. | 810 // These messages are sent from the GPU process to Browser process. |
809 // | 811 // |
810 // Report decode status. | 812 // Report decode status. |
811 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 813 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
812 int32, /* bitstream_buffer_id */ | 814 int32, /* bitstream_buffer_id */ |
813 media::JpegDecodeAccelerator::Error /* error */) | 815 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |