Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1039)

Side by Side Diff: services/media/framework_mojo/mojo_allocator.cc

Issue 2081753002: Motown: Stop requiring size when releasing payload buffers. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/media/framework_mojo/mojo_allocator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « services/media/framework_mojo/mojo_allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698