#include "media/gpu/video_frame_mapper_factory.h"
#include "build/build_config.h"
#include "media/gpu/buildflags.h"
#include "media/media_buildflags.h"
#if BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
#include "media/gpu/chromeos/generic_dmabuf_video_frame_mapper.h"
#include "media/gpu/chromeos/gpu_memory_buffer_video_frame_mapper.h"
#endif
#if BUILDFLAG(USE_VAAPI)
#include "media/gpu/vaapi/vaapi_dmabuf_video_frame_mapper.h"
#include "media/gpu/vaapi/vaapi_wrapper.h"
#endif
namespace media {
std::unique_ptr<VideoFrameMapper> VideoFrameMapperFactory::CreateMapper(
VideoPixelFormat format,
VideoFrame::StorageType storage_type,
bool must_support_intel_media_compressed_buffers) { … }
std::unique_ptr<VideoFrameMapper> VideoFrameMapperFactory::CreateMapper(
VideoPixelFormat format,
VideoFrame::StorageType storage_type,
bool force_linear_buffer_mapper,
bool must_support_intel_media_compressed_buffers) { … }
}