chromium/media/video/offloading_video_encoder.h

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_VIDEO_OFFLOADING_VIDEO_ENCODER_H_
#define MEDIA_VIDEO_OFFLOADING_VIDEO_ENCODER_H_

#include <memory>
#include <type_traits>

#include "base/sequence_checker.h"
#include "media/base/video_encoder.h"

namespace base {
class SequencedTaskRunner;
}

namespace media {

// A wrapper around video encoder that offloads all the calls to a dedicated
// task runner. It's used to move synchronous software encoding work off the
// current (main) thread.
class MEDIA_EXPORT OffloadingVideoEncoder final : public VideoEncoder {};

}  // namespace media

#endif  // MEDIA_VIDEO_OFFLOADING_VIDEO_ENCODER_H_