#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/cdm/simple_cdm_allocator.h"
#include <memory>
#include "base/functional/bind.h"
#include "media/base/video_frame.h"
#include "media/cdm/cdm_helpers.h"
#include "media/cdm/simple_cdm_buffer.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
namespace media {
namespace {
class SimpleCdmVideoFrame final : public VideoFrameImpl { … };
}
SimpleCdmAllocator::SimpleCdmAllocator() = default;
SimpleCdmAllocator::~SimpleCdmAllocator() = default;
cdm::Buffer* SimpleCdmAllocator::CreateCdmBuffer(size_t capacity) { … }
std::unique_ptr<VideoFrameImpl> SimpleCdmAllocator::CreateCdmVideoFrame() { … }
}