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

Side by Side Diff: services/media/framework/payload_allocator.cc

Issue 1822333002: Motown: wholesale clang-format (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: dalesat Created 4 years, 9 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/payload_allocator.h ('k') | services/media/framework/refs.cc » ('j') | 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 <cstdlib> 5 #include <cstdlib>
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "services/media/framework/payload_allocator.h" 8 #include "services/media/framework/payload_allocator.h"
9 9
10 namespace mojo { 10 namespace mojo {
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 void DefaultAllocator::ReleasePayloadBuffer(size_t size, void* buffer) { 30 void DefaultAllocator::ReleasePayloadBuffer(size_t size, void* buffer) {
31 DCHECK(size > 0); 31 DCHECK(size > 0);
32 DCHECK(buffer); 32 DCHECK(buffer);
33 std::free(buffer); 33 std::free(buffer);
34 } 34 }
35 35
36 static constexpr DefaultAllocator default_allocator; 36 static constexpr DefaultAllocator default_allocator;
37 37
38 } // namespace 38 } // namespace
39 39
40 // static 40 // static
41 PayloadAllocator* PayloadAllocator::GetDefault() { 41 PayloadAllocator* PayloadAllocator::GetDefault() {
42 return const_cast<DefaultAllocator*>(&default_allocator); 42 return const_cast<DefaultAllocator*>(&default_allocator);
43 } 43 }
44 44
45 } // namespace media 45 } // namespace media
46 } // namespace mojo 46 } // namespace mojo
OLDNEW
« no previous file with comments | « services/media/framework/payload_allocator.h ('k') | services/media/framework/refs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698