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

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

Issue 1692443002: Motown: Framework parts for mojo transport (producer/consumer/mediapipe) and control (audiotrack). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Added comments to AudioTrackController::SetRate regarding the proper way to implement it. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_
6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_
7
8 #include "mojo/services/media/common/cpp/shared_media_buffer_allocator.h"
9 #include "services/media/framework/payload_allocator.h"
10
11 namespace mojo {
12 namespace media {
13
14 // Just like SharedMediaBufferAllocator but implements PayloadAllocator.
15 class MojoAllocator :
16 public SharedMediaBufferAllocator,
17 public PayloadAllocator {
18 public:
19 ~MojoAllocator() override;
20
21 // PayloadAllocator implementation.
22 void* AllocatePayloadBuffer(size_t size) override;
23
24 void ReleasePayloadBuffer(size_t size, void* buffer) override;
25 };
26
27 } // namespace media
28 } // namespace mojo
29
30 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « services/media/framework_mojo/audio_track_producer.cc ('k') | services/media/framework_mojo/mojo_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698