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

Unified Diff: media/cdm/cdm_buffer_allocator_impl.cc

Issue 1673383002: Add allocator interface for use by cdm_adapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: media/cdm/cdm_buffer_allocator_impl.cc
diff --git a/media/cdm/cdm_buffer_allocator_impl.cc b/media/cdm/cdm_buffer_allocator_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c8e8ec5d9426ba339be62885b54884e94222b7fc
--- /dev/null
+++ b/media/cdm/cdm_buffer_allocator_impl.cc
@@ -0,0 +1,27 @@
+// 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 "media/cdm/cdm_buffer_allocator_impl.h"
+
+#include "base/logging.h"
+#include "media/cdm/cdm_buffer_impl.h"
+
+namespace media {
+
+CdmBufferAllocatorImpl::CdmBufferAllocatorImpl() {}
+
+CdmBufferAllocatorImpl::~CdmBufferAllocatorImpl() {}
+
+CdmBuffer* CdmBufferAllocatorImpl::Allocate(uint32_t capacity) {
+ if (!capacity)
+ return nullptr;
+
+ return CdmBufferImpl::Create(capacity);
+}
+
+void CdmBufferAllocatorImpl::Release(uint32_t buffer_id) {
+ NOTREACHED();
+}
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698