| Index: services/media/framework_mojo/mojo_allocator.cc
|
| diff --git a/services/media/framework_mojo/mojo_allocator.cc b/services/media/framework_mojo/mojo_allocator.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6622357e82776f3998dc72f97eb04d8fb9ffe925
|
| --- /dev/null
|
| +++ b/services/media/framework_mojo/mojo_allocator.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "services/media/framework_mojo/mojo_allocator.h"
|
| +
|
| +namespace mojo {
|
| +namespace media {
|
| +
|
| +MojoAllocator::~MojoAllocator() {}
|
| +
|
| +void* MojoAllocator::AllocatePayloadBuffer(size_t size) {
|
| + return AllocateRegion(size);
|
| +}
|
| +
|
| +void MojoAllocator::ReleasePayloadBuffer(size_t size, void* buffer) {
|
| + ReleaseRegion(size, buffer);
|
| +}
|
| +
|
| +} // namespace media
|
| +} // namespace mojo
|
|
|