#include "services/video_effects/video_effects_service_impl.h"
#include <memory>
#include <utility>
#include "base/check.h"
#include "base/files/memory_mapped_file.h"
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/sequence_checker.h"
#include "media/capture/mojom/video_effects_manager.mojom-forward.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "services/video_effects/public/mojom/video_effects_processor.mojom-forward.h"
#include "services/video_effects/public/mojom/video_effects_service.mojom.h"
#include "services/video_effects/video_effects_processor_impl.h"
#include "services/video_effects/viz_gpu_channel_host_provider.h"
namespace video_effects {
VideoEffectsServiceImpl::VideoEffectsServiceImpl(
mojo::PendingReceiver<mojom::VideoEffectsService> receiver,
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner)
: … { … }
VideoEffectsServiceImpl::~VideoEffectsServiceImpl() { … }
void VideoEffectsServiceImpl::CreateEffectsProcessor(
const std::string& device_id,
mojo::PendingRemote<viz::mojom::Gpu> gpu_remote,
mojo::PendingRemote<media::mojom::VideoEffectsManager> manager_remote,
mojo::PendingReceiver<mojom::VideoEffectsProcessor> processor_receiver) { … }
void VideoEffectsServiceImpl::SetBackgroundSegmentationModel(
base::File model_file) { … }
void VideoEffectsServiceImpl::RemoveProcessor(const std::string& id) { … }
}