Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 1438063002: media: Support SetCdm() on VideoDecodeAccelerator interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 // Attaches an external image stream to the client texture. 671 // Attaches an external image stream to the client texture.
672 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 672 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
673 uint32, /* client_texture_id */ 673 uint32, /* client_texture_id */
674 int32, /* stream_id */ 674 int32, /* stream_id */
675 bool /* succeeded */) 675 bool /* succeeded */)
676 676
677 //------------------------------------------------------------------------------ 677 //------------------------------------------------------------------------------
678 // Accelerated Video Decoder Messages 678 // Accelerated Video Decoder Messages
679 // These messages are sent from Renderer process to GPU process. 679 // These messages are sent from Renderer process to GPU process.
680 680
681 // Set a CDM on the decoder to handle encrypted buffers.
682 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_SetCdm,
683 int32_t) /* CDM ID */
684
681 // Send input buffer for decoding. 685 // Send input buffer for decoding.
682 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode, 686 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode,
683 AcceleratedVideoDecoderMsg_Decode_Params) 687 AcceleratedVideoDecoderMsg_Decode_Params)
684 688
685 // Sent from Renderer process to the GPU process to give the texture IDs for 689 // Give the texture IDs for the textures the decoder will use for output.
686 // the textures the decoder will use for output.
687 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderMsg_AssignPictureBuffers, 690 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderMsg_AssignPictureBuffers,
688 std::vector<int32>, /* Picture buffer ID */ 691 std::vector<int32>, /* Picture buffer ID */
689 std::vector<uint32>) /* Texture ID */ 692 std::vector<uint32>) /* Texture ID */
690 693
691 // Send from Renderer process to the GPU process to recycle the given picture 694 // Send from Renderer process to the GPU process to recycle the given picture
692 // buffer for further decoding. 695 // buffer for further decoding.
693 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_ReusePictureBuffer, 696 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_ReusePictureBuffer,
694 int32) /* Picture buffer ID */ 697 int32) /* Picture buffer ID */
695 698
696 // Send flush request to the decoder. 699 // Send flush request to the decoder.
697 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Flush) 700 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Flush)
698 701
699 // Send reset request to the decoder. 702 // Send reset request to the decoder.
700 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Reset) 703 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Reset)
701 704
702 // Send destroy request to the decoder. 705 // Send destroy request to the decoder.
703 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Destroy) 706 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Destroy)
704 707
705 //------------------------------------------------------------------------------ 708 //------------------------------------------------------------------------------
706 // Accelerated Video Decoder Host Messages 709 // Accelerated Video Decoder Host Messages
707 // These messages are sent from GPU process to Renderer process. 710 // These messages are sent from GPU process to Renderer process.
708 // Inform AcceleratedVideoDecoderHost that AcceleratedVideoDecoder has been 711 // Inform AcceleratedVideoDecoderHost that AcceleratedVideoDecoder has been
709 // created. 712 // created.
710 713
714 // Notify the CDM setting result.
715 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_CdmAttached,
716 bool) /* success */
717
711 // Accelerated video decoder has consumed input buffer from transfer buffer. 718 // Accelerated video decoder has consumed input buffer from transfer buffer.
712 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, 719 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed,
713 int32) /* Processed buffer ID */ 720 int32) /* Processed buffer ID */
714 721
715 // Allocate video frames for output of the hardware video decoder. 722 // Allocate video frames for output of the hardware video decoder.
716 IPC_MESSAGE_ROUTED3( 723 IPC_MESSAGE_ROUTED3(
717 AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, 724 AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers,
718 int32, /* Number of video frames to generate */ 725 int32, /* Number of video frames to generate */
719 gfx::Size, /* Requested size of buffer */ 726 gfx::Size, /* Requested size of buffer */
720 uint32 ) /* Texture target */ 727 uint32 ) /* Texture target */
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 815 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
809 816
810 //------------------------------------------------------------------------------ 817 //------------------------------------------------------------------------------
811 // Accelerated JPEG Decoder Host Messages 818 // Accelerated JPEG Decoder Host Messages
812 // These messages are sent from the GPU process to Browser process. 819 // These messages are sent from the GPU process to Browser process.
813 // 820 //
814 // Report decode status. 821 // Report decode status.
815 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 822 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
816 int32, /* bitstream_buffer_id */ 823 int32, /* bitstream_buffer_id */
817 media::JpegDecodeAccelerator::Error /* error */) 824 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698