#include "media/mojo/services/gpu_mojo_media_client.h"
#include "base/metrics/histogram_functions.h"
#include "base/task/sequenced_task_runner.h"
#include "media/base/audio_decoder.h"
#include "media/base/audio_encoder.h"
#include "media/base/media_log.h"
#include "media/base/media_switches.h"
#include "media/gpu/chromeos/mailbox_video_frame_converter.h"
#include "media/gpu/chromeos/platform_video_frame_pool.h"
#include "media/gpu/chromeos/video_decoder_pipeline.h"
namespace media {
namespace {
VideoDecoderType GetPreferredLinuxDecoderImplementation() { … }
std::vector<Fourcc> GetPreferredRenderableFourccs(
const gpu::GpuPreferences& gpu_preferences) { … }
VideoDecoderType GetActualPlatformDecoderImplementation(
const gpu::GpuPreferences& gpu_preferences,
const gpu::GPUInfo& gpu_info) { … }
}
class GpuMojoMediaClientLinux final : public GpuMojoMediaClient { … };
std::unique_ptr<GpuMojoMediaClient> CreateGpuMediaService(
GpuMojoMediaClientTraits& traits) { … }
}