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

Unified Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.cc

Issue 1422643002: Pass DecryptConfig parameters over IPC and use it in AVDA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed MediaCodec.CodecException that was added only at level 21 (Android L) Created 5 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0abfad120494e20fe717d1e99119935d3df617d2..41a4dbc1a1dac45037abcfcd92a77a68ee62770f 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
@@ -117,9 +117,16 @@ void GpuVideoDecodeAcceleratorHost::Decode(
return;
}
- Send(new AcceleratedVideoDecoderMsg_Decode(
- decoder_route_id_, handle, bitstream_buffer.id(), bitstream_buffer.size(),
- bitstream_buffer.presentation_timestamp()));
+ AcceleratedVideoDecoderMsg_Decode_Params params;
+ params.bitstream_buffer_id = bitstream_buffer.id();
+ params.buffer_handle = handle;
+ params.size = bitstream_buffer.size();
+ params.presentation_timestamp = bitstream_buffer.presentation_timestamp();
+ params.key_id = bitstream_buffer.key_id();
+ params.iv = bitstream_buffer.iv();
+ params.subsamples = bitstream_buffer.subsamples();
+
+ Send(new AcceleratedVideoDecoderMsg_Decode(decoder_route_id_, params));
}
void GpuVideoDecodeAcceleratorHost::AssignPictureBuffers(
« no previous file with comments | « no previous file | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698