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

Side by Side 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 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 #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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698