| Index: content/common/gpu/media/android_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc
|
| index 2cc7c32c14d5d21f49b46ab24e38942bb15db94a..48971b352f5e9e58c3c3c83c2c7084c851509f0b 100644
|
| --- a/content/common/gpu/media/android_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/android_video_decode_accelerator.cc
|
| @@ -222,10 +222,10 @@ bool AndroidVideoDecodeAccelerator::QueueInput() {
|
| return true;
|
| }
|
|
|
| - scoped_ptr<base::SharedMemory> shm(
|
| - new base::SharedMemory(bitstream_buffer.handle(), true));
|
| - RETURN_ON_FAILURE(this, shm->Map(bitstream_buffer.size()),
|
| - "Failed to SharedMemory::Map()", UNREADABLE_INPUT, false);
|
| + scoped_ptr<SharedMemoryRegion> shm(
|
| + new SharedMemoryRegion(bitstream_buffer, true));
|
| + RETURN_ON_FAILURE(this, shm->Map(), "Failed to SharedMemoryRegion::Map()",
|
| + UNREADABLE_INPUT, false);
|
|
|
| const base::TimeDelta presentation_timestamp =
|
| bitstream_buffer.presentation_timestamp();
|
|
|