#include "media/capture/video/video_frame_receiver_on_task_runner.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
namespace media {
VideoFrameReceiverOnTaskRunner::VideoFrameReceiverOnTaskRunner(
const base::WeakPtr<VideoFrameReceiver>& receiver,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
VideoFrameReceiverOnTaskRunner::~VideoFrameReceiverOnTaskRunner() = default;
void VideoFrameReceiverOnTaskRunner::OnCaptureConfigurationChanged() { … }
void VideoFrameReceiverOnTaskRunner::OnNewBuffer(
int buffer_id,
media::mojom::VideoBufferHandlePtr buffer_handle) { … }
void VideoFrameReceiverOnTaskRunner::OnFrameReadyInBuffer(
ReadyFrameInBuffer frame) { … }
void VideoFrameReceiverOnTaskRunner::OnBufferRetired(int buffer_id) { … }
void VideoFrameReceiverOnTaskRunner::OnError(VideoCaptureError error) { … }
void VideoFrameReceiverOnTaskRunner::OnFrameDropped(
VideoCaptureFrameDropReason reason) { … }
void VideoFrameReceiverOnTaskRunner::OnNewSubCaptureTargetVersion(
uint32_t sub_capture_target_version) { … }
void VideoFrameReceiverOnTaskRunner::OnFrameWithEmptyRegionCapture() { … }
void VideoFrameReceiverOnTaskRunner::OnLog(const std::string& message) { … }
void VideoFrameReceiverOnTaskRunner::OnStarted() { … }
void VideoFrameReceiverOnTaskRunner::OnStartedUsingGpuDecode() { … }
void VideoFrameReceiverOnTaskRunner::OnStopped() { … }
}