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

Unified Diff: services/media/framework_mojo/mojo_allocator.cc

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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/media/framework_mojo/mojo_allocator.h ('k') | services/media/framework_mojo/mojo_consumer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/framework_mojo/mojo_allocator.cc
diff --git a/services/media/framework_mojo/mojo_allocator.cc b/services/media/framework_mojo/mojo_allocator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6622357e82776f3998dc72f97eb04d8fb9ffe925
--- /dev/null
+++ b/services/media/framework_mojo/mojo_allocator.cc
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "services/media/framework_mojo/mojo_allocator.h"
+
+namespace mojo {
+namespace media {
+
+MojoAllocator::~MojoAllocator() {}
+
+void* MojoAllocator::AllocatePayloadBuffer(size_t size) {
+ return AllocateRegion(size);
+}
+
+void MojoAllocator::ReleasePayloadBuffer(size_t size, void* buffer) {
+ ReleaseRegion(size, buffer);
+}
+
+} // namespace media
+} // namespace mojo
« no previous file with comments | « services/media/framework_mojo/mojo_allocator.h ('k') | services/media/framework_mojo/mojo_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698