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

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: 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Send input buffer for decoding. 681 // Send input buffer for decoding.
682 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode, 682 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode,
683 AcceleratedVideoDecoderMsg_Decode_Params) 683 AcceleratedVideoDecoderMsg_Decode_Params)
684 684
685 // Sent from Renderer process to the GPU process to give the texture IDs for 685 // 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, 686 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderMsg_AssignPictureBuffers,
688 std::vector<int32>, /* Picture buffer ID */ 687 std::vector<int32>, /* Picture buffer ID */
689 std::vector<uint32>) /* Texture ID */ 688 std::vector<uint32>) /* Texture ID */
690 689
691 // Send from Renderer process to the GPU process to recycle the given picture 690 // Send from Renderer process to the GPU process to recycle the given picture
692 // buffer for further decoding. 691 // buffer for further decoding.
693 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_ReusePictureBuffer, 692 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_ReusePictureBuffer,
694 int32) /* Picture buffer ID */ 693 int32) /* Picture buffer ID */
695 694
696 // Send flush request to the decoder. 695 // Send flush request to the decoder.
697 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Flush) 696 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Flush)
698 697
699 // Send reset request to the decoder. 698 // Send reset request to the decoder.
700 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Reset) 699 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Reset)
701 700
701 // Set a CDM on the decoder to handle encrypted buffers.
702 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_SetCdm,
703 int32) /* CDM ID */
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
711 // Accelerated video decoder has consumed input buffer from transfer buffer. 714 // Accelerated video decoder has consumed input buffer from transfer buffer.
(...skipping 18 matching lines...) Expand all
730 int32, /* Bitstream buffer ID */ 733 int32, /* Bitstream buffer ID */
731 gfx::Rect, /* Visible rectangle */ 734 gfx::Rect, /* Visible rectangle */
732 bool) /* Buffer is HW overlay capable */ 735 bool) /* Buffer is HW overlay capable */
733 736
734 // Confirm decoder has been flushed. 737 // Confirm decoder has been flushed.
735 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 738 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
736 739
737 // Confirm decoder has been reset. 740 // Confirm decoder has been reset.
738 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 741 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
739 742
743 // Notify the CDM setting result.
744 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_CdmSet,
liberato (no reviews please) 2015/11/11 23:29:10 if you're feeling sufficiently obsessive-compulsiv
dcheng 2015/11/12 18:48:43 I think this could be named more intuitively (beca
xhwang 2015/11/13 01:16:55 I fixed gpu_vda, which is in a mess.
xhwang 2015/11/13 01:16:55 Renamed to CdmAttached which is already used in va
745 bool) /* success */
746
740 // Video decoder has encountered an error. 747 // Video decoder has encountered an error.
741 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 748 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
742 uint32) /* Error ID */ 749 uint32) /* Error ID */
743 750
744 //------------------------------------------------------------------------------ 751 //------------------------------------------------------------------------------
745 // Accelerated Video Encoder Messages 752 // Accelerated Video Encoder Messages
746 // These messages are sent from the Renderer process to GPU process. 753 // These messages are sent from the Renderer process to GPU process.
747 754
748 // Queue a video frame to the encoder to encode. |frame_id| will be returned 755 // Queue a video frame to the encoder to encode. |frame_id| will be returned
749 // by AcceleratedVideoEncoderHostMsg_NotifyInputDone. 756 // by AcceleratedVideoEncoderHostMsg_NotifyInputDone.
(...skipping 58 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