OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "services/media/framework_mojo/mojo_allocator.h" | 5 #include "services/media/framework_mojo/mojo_allocator.h" |
6 | 6 |
7 namespace mojo { | 7 namespace mojo { |
8 namespace media { | 8 namespace media { |
9 | 9 |
10 MojoAllocator::~MojoAllocator() {} | 10 MojoAllocator::~MojoAllocator() {} |
11 | 11 |
12 void* MojoAllocator::AllocatePayloadBuffer(size_t size) { | 12 void* MojoAllocator::AllocatePayloadBuffer(size_t size) { |
13 return AllocateRegion(size); | 13 return AllocateRegion(size); |
14 } | 14 } |
15 | 15 |
16 void MojoAllocator::ReleasePayloadBuffer(size_t size, void* buffer) { | 16 void MojoAllocator::ReleasePayloadBuffer(void* buffer) { |
17 ReleaseRegion(size, buffer); | 17 ReleaseRegion(buffer); |
18 } | 18 } |
19 | 19 |
20 } // namespace media | 20 } // namespace media |
21 } // namespace mojo | 21 } // namespace mojo |
OLD | NEW |