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

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

Issue 1541353002: Add offset support to BitstreamBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle the offset with a helper class Created 5 years 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
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 621d21077460947feedd6b18d842fb14ee1571c2..11e2a4919f0d48afc2c7fa4359a8a1012dd71b9f 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
@@ -129,7 +129,8 @@ void GpuVideoDecodeAcceleratorHost::Decode(
AcceleratedVideoDecoderMsg_Decode_Params params;
params.bitstream_buffer_id = bitstream_buffer.id();
params.buffer_handle = handle;
- params.size = bitstream_buffer.size();
+ params.size = base::checked_cast<uint32>(bitstream_buffer.size());
Pawel Osciak 2015/12/31 02:05:53 We've just switched to standard integer types. Ple
Owen Lin 2016/01/04 08:54:17 Acknowledged.
+ params.offset = base::checked_cast<uint32>(bitstream_buffer.offset());
params.presentation_timestamp = bitstream_buffer.presentation_timestamp();
params.key_id = bitstream_buffer.key_id();
params.iv = bitstream_buffer.iv();

Powered by Google App Engine
This is Rietveld 408576698