OLD | NEW |
(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 #include "media/cdm/cdm_buffer_allocator_impl.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "media/cdm/cdm_buffer_impl.h" |
| 9 |
| 10 namespace media { |
| 11 |
| 12 CdmBufferAllocatorImpl::CdmBufferAllocatorImpl() {} |
| 13 |
| 14 CdmBufferAllocatorImpl::~CdmBufferAllocatorImpl() {} |
| 15 |
| 16 CdmBuffer* CdmBufferAllocatorImpl::Allocate(uint32_t capacity) { |
| 17 if (!capacity) |
| 18 return nullptr; |
| 19 |
| 20 return CdmBufferImpl::Create(capacity); |
| 21 } |
| 22 |
| 23 void CdmBufferAllocatorImpl::Release(uint32_t buffer_id) { |
| 24 NOTREACHED(); |
| 25 } |
| 26 |
| 27 } // namespace media |
OLD | NEW |