#include "media/capture/video/gpu_memory_buffer_utils.h"
#include "base/functional/callback_helpers.h"
#include "gpu/ipc/common/gpu_memory_buffer_support.h"
#include "ui/gfx/gpu_memory_buffer.h"
namespace media {
ScopedNV12GpuMemoryBufferMapping::ScopedNV12GpuMemoryBufferMapping(
std::unique_ptr<gfx::GpuMemoryBuffer> gmb)
: … { … }
ScopedNV12GpuMemoryBufferMapping::~ScopedNV12GpuMemoryBufferMapping() { … }
uint8_t* ScopedNV12GpuMemoryBufferMapping::y_plane() { … }
uint8_t* ScopedNV12GpuMemoryBufferMapping::uv_plane() { … }
size_t ScopedNV12GpuMemoryBufferMapping::y_stride() { … }
size_t ScopedNV12GpuMemoryBufferMapping::uv_stride() { … }
VideoCaptureDevice::Client::ReserveResult AllocateNV12GpuMemoryBuffer(
VideoCaptureDevice::Client* capture_client,
const gfx::Size& buffer_size,
gpu::GpuMemoryBufferSupport* gmb_support,
std::unique_ptr<gfx::GpuMemoryBuffer>* out_gpu_memory_buffer,
VideoCaptureDevice::Client::Buffer* out_capture_buffer) { … }
}