#include "media/gpu/ipc/service/media_gpu_channel_manager.h"
#include <memory>
#include <utility>
#include "gpu/ipc/service/gpu_channel.h"
#include "gpu/ipc/service/gpu_channel_manager.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/param_traits_macros.h"
#include "media/base/media_switches.h"
#include "media/gpu/ipc/service/media_gpu_channel.h"
#if BUILDFLAG(IS_WIN)
#include "media/gpu/windows/d3d12_helpers.h"
#endif
namespace media {
MediaGpuChannelManager::MediaGpuChannelManager(
gpu::GpuChannelManager* channel_manager)
: … { … }
MediaGpuChannelManager::~MediaGpuChannelManager() = default;
void MediaGpuChannelManager::AddChannel(
int32_t client_id,
const base::UnguessableToken& channel_token) { … }
void MediaGpuChannelManager::RemoveChannel(int32_t client_id) { … }
void MediaGpuChannelManager::DestroyAllChannels() { … }
gpu::GpuChannel* MediaGpuChannelManager::LookupChannel(
const base::UnguessableToken& channel_token) { … }
void MediaGpuChannelManager::SetOverlayFactory(
AndroidOverlayMojoFactoryCB overlay_factory_cb) { … }
AndroidOverlayMojoFactoryCB MediaGpuChannelManager::GetOverlayFactory() { … }
scoped_refptr<gpu::SharedContextState>
MediaGpuChannelManager::GetSharedContextState() { … }
}