DescriptionAdd allocator interface for use by cdm_adapter
Rather than allocating a buffer directly, add CdmAllocator interface
that will allocate buffers as needed. Initial implementation of
CdmAllocator (SimpleCdmAllocator) simply creates a new buffer every
time one is needed. There is no reuse, since it will only be used
for testing purposes.
CdmAllocator also has an interface to create a cdm::VideoFrame,
which now has the additional ability to create a media::VideoFrame
using the data returned by the CDM.
BUG=510088
TEST=Updated tests pass
Committed: https://crrev.com/550e1c056d4456000cb4be88676d6f5f01b9efdb
Cr-Commit-Position: refs/heads/master@{#375987}
Patch Set 1 #
Total comments: 18
Patch Set 2 : Simple classes #
Total comments: 10
Patch Set 3 : changes #
Total comments: 20
Patch Set 4 : add test #
Total comments: 4
Patch Set 5 : nits #Patch Set 6 : NON_EXPORTED_BASE() #Patch Set 7 : more Windows changes #Patch Set 8 : add MEDIA_CDM_EXPORT for Windows #
Messages
Total messages: 30 (13 generated)
|