Commit 511f1070 authored by Matthew Cary's avatar Matthew Cary Committed by Commit Bot

media/base: Update WritableUnalignedMapping constructor.

Use the base::UnsafeSharedMemoryRegion constructor which avoids a mojo
dependency. Several media tests are built without mojo support.

Bug: 795291
Change-Id: If754e6111189e8944997550f00e3ed7ef9fde1c3
Reviewed-on: https://chromium-review.googlesource.com/1190243Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
Commit-Queue: Matthew Cary <mattcary@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588808}
parent 361cca9b
......@@ -113,10 +113,7 @@ WritableUnalignedMapping::WritableUnalignedMapping(
size_t size,
off_t offset)
: WritableUnalignedMapping(
mojo::UnwrapUnsafeSharedMemoryRegion(mojo::WrapSharedMemoryHandle(
handle,
handle.GetSize(),
mojo::UnwrappedSharedMemoryHandleProtection::kReadWrite)),
base::UnsafeSharedMemoryRegion::CreateFromHandle(handle),
size,
offset) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment