#ifndef MEDIA_RENDERERS_VIDEO_FRAME_RGBA_TO_YUVA_CONVERTER_H_
#define MEDIA_RENDERERS_VIDEO_FRAME_RGBA_TO_YUVA_CONVERTER_H_
#include "media/base/media_export.h"
#include "third_party/skia/include/gpu/GrTypes.h"
namespace gfx {
class ColorSpace;
class Size;
}
namespace gpu {
struct MailboxHolder;
}
namespace viz {
class RasterContextProvider;
class SharedImageFormat;
}
namespace media {
class VideoFrame;
MEDIA_EXPORT bool CopyRGBATextureToVideoFrame(
viz::RasterContextProvider* raster_context_provider,
viz::SharedImageFormat src_format,
const gfx::Size& src_size,
const gfx::ColorSpace& src_color_space,
GrSurfaceOrigin src_surface_origin,
const gpu::MailboxHolder& src_mailbox_holder,
VideoFrame* dst_video_frame);
}
#endif