#include "components/mirroring/service/fake_video_capture_host.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "media/base/video_frame.h"
#include "media/capture/mojom/video_capture_buffer.mojom.h"
#include "media/capture/mojom/video_capture_types.mojom.h"
namespace mirroring {
namespace {
constexpr bool kNotPremapped = …;
}
FakeVideoCaptureHost::FakeVideoCaptureHost(
mojo::PendingReceiver<media::mojom::VideoCaptureHost> receiver)
: … { … }
FakeVideoCaptureHost::~FakeVideoCaptureHost() { … }
void FakeVideoCaptureHost::Start(
const base::UnguessableToken& device_id,
const base::UnguessableToken& session_id,
const media::VideoCaptureParams& params,
mojo::PendingRemote<media::mojom::VideoCaptureObserver> observer) { … }
void FakeVideoCaptureHost::Stop(const base::UnguessableToken& device_id) { … }
void FakeVideoCaptureHost::Pause(const base::UnguessableToken& device_id) { … }
void FakeVideoCaptureHost::Resume(const base::UnguessableToken& device_id,
const base::UnguessableToken& session_id,
const media::VideoCaptureParams& params) { … }
void FakeVideoCaptureHost::SendOneFrame(const gfx::Size& size,
base::TimeTicks capture_time) { … }
media::VideoCaptureParams FakeVideoCaptureHost::GetVideoCaptureParams() const { … }
}