#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/gpu/chromeos/gpu_memory_buffer_video_frame_mapper.h"
#include <sys/mman.h>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "media/gpu/chromeos/chromeos_compressed_gpu_memory_buffer_video_frame_utils.h"
#include "media/gpu/macros.h"
#include "ui/gfx/gpu_memory_buffer.h"
namespace media {
std::unique_ptr<GpuMemoryBufferVideoFrameMapper>
GpuMemoryBufferVideoFrameMapper::Create(VideoPixelFormat format) { … }
GpuMemoryBufferVideoFrameMapper::GpuMemoryBufferVideoFrameMapper(
VideoPixelFormat format)
: … { … }
scoped_refptr<VideoFrame> GpuMemoryBufferVideoFrameMapper::MapFrame(
scoped_refptr<const FrameResource> video_frame,
int permissions) { … }
}