| 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 00e1bb67856e14163ea5da84a6d04a37607335de..9119400014ac8d774f427d19acf52a92c9939347 100644
|
| --- a/content/common/gpu/media/android_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/android_video_decode_accelerator.cc
|
| @@ -204,10 +204,10 @@ void AndroidVideoDecodeAccelerator::QueueInput() {
|
| return;
|
| }
|
|
|
| - 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);
|
| + scoped_ptr<SharedMemoryRegion> shm(
|
| + new SharedMemoryRegion(bitstream_buffer, true));
|
| + RETURN_ON_FAILURE(this, shm->Map(), "Failed to SharedMemoryRegion::Map()",
|
| + UNREADABLE_INPUT);
|
|
|
| const base::TimeDelta presentation_timestamp =
|
| bitstream_buffer.presentation_timestamp();
|
|
|