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 |