#ifndef MEDIA_CAPTURE_VIDEO_GPU_MEMORY_BUFFER_UTILS_H_
#define MEDIA_CAPTURE_VIDEO_GPU_MEMORY_BUFFER_UTILS_H_
#include <memory>
#include "media/capture/video/video_capture_device.h"
namespace gfx {
class GpuMemoryBuffer;
}
namespace gpu {
class GpuMemoryBufferSupport;
}
namespace media {
class ScopedNV12GpuMemoryBufferMapping { … };
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);
}
#endif