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

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

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
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 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_ 5 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_
6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_ 6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_
7 7
8 #include "mojo/services/media/common/cpp/shared_media_buffer_allocator.h" 8 #include "mojo/services/media/common/cpp/shared_media_buffer_allocator.h"
9 #include "services/media/framework/payload_allocator.h" 9 #include "services/media/framework/payload_allocator.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 namespace media { 12 namespace media {
13 13
14 // Just like SharedMediaBufferAllocator but implements PayloadAllocator. 14 // Just like SharedMediaBufferAllocator but implements PayloadAllocator.
15 class MojoAllocator : 15 class MojoAllocator : public SharedMediaBufferAllocator,
16 public SharedMediaBufferAllocator, 16 public PayloadAllocator {
17 public PayloadAllocator {
18 public: 17 public:
19 ~MojoAllocator() override; 18 ~MojoAllocator() override;
20 19
21 // PayloadAllocator implementation. 20 // PayloadAllocator implementation.
22 void* AllocatePayloadBuffer(size_t size) override; 21 void* AllocatePayloadBuffer(size_t size) override;
23 22
24 void ReleasePayloadBuffer(size_t size, void* buffer) override; 23 void ReleasePayloadBuffer(size_t size, void* buffer) override;
25 }; 24 };
26 25
27 } // namespace media 26 } // namespace media
28 } // namespace mojo 27 } // namespace mojo
29 28
30 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_ 29 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « services/media/framework_ffmpeg/ffmpeg_video_decoder.cc ('k') | services/media/framework_mojo/mojo_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698