| Index: content/common/gpu/client/gpu_video_decode_accelerator_host.cc
|
| diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
|
| index 41a4dbc1a1dac45037abcfcd92a77a68ee62770f..a329dcc54dce45b5524dbdef39ed211d297e4e46 100644
|
| --- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
|
| +++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
|
| @@ -46,6 +46,8 @@ bool GpuVideoDecodeAcceleratorHost::OnMessageReceived(const IPC::Message& msg) {
|
| DCHECK(CalledOnValidThread());
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(GpuVideoDecodeAcceleratorHost, msg)
|
| + IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderHostMsg_CdmAttached,
|
| + OnCdmAttached)
|
| IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed,
|
| OnBitstreamBufferProcessed)
|
| IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers,
|
| @@ -104,6 +106,13 @@ bool GpuVideoDecodeAcceleratorHost::Initialize(media::VideoCodecProfile profile,
|
| return true;
|
| }
|
|
|
| +void GpuVideoDecodeAcceleratorHost::SetCdm(int cdm_id) {
|
| + DCHECK(CalledOnValidThread());
|
| + if (!channel_)
|
| + return;
|
| + Send(new AcceleratedVideoDecoderMsg_SetCdm(decoder_route_id_, cdm_id));
|
| +}
|
| +
|
| void GpuVideoDecodeAcceleratorHost::Decode(
|
| const media::BitstreamBuffer& bitstream_buffer) {
|
| DCHECK(CalledOnValidThread());
|
| @@ -209,6 +218,12 @@ void GpuVideoDecodeAcceleratorHost::Send(IPC::Message* message) {
|
| }
|
| }
|
|
|
| +void GpuVideoDecodeAcceleratorHost::OnCdmAttached(bool success) {
|
| + DCHECK(CalledOnValidThread());
|
| + if (client_)
|
| + client_->NotifyCdmAttached(success);
|
| +}
|
| +
|
| void GpuVideoDecodeAcceleratorHost::OnBitstreamBufferProcessed(
|
| int32 bitstream_buffer_id) {
|
| DCHECK(CalledOnValidThread());
|
|
|