#include "third_party/blink/renderer/modules/breakout_box/frame_queue_transferring_optimizer.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "media/base/audio_buffer.h"
#include "media/base/video_frame.h"
#include "third_party/blink/renderer/modules/breakout_box/transferred_frame_queue_underlying_source.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_base.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace blink {
template <typename NativeFrameType>
FrameQueueTransferringOptimizer<NativeFrameType>::
FrameQueueTransferringOptimizer(
FrameQueueHost* host,
scoped_refptr<base::SequencedTaskRunner> host_runner,
wtf_size_t max_queue_size,
ConnectHostCallback connect_host_callback,
CrossThreadOnceClosure transferred_source_destroyed_callback)
: … { … }
template <typename NativeFrameType>
UnderlyingSourceBase*
FrameQueueTransferringOptimizer<NativeFrameType>::PerformInProcessOptimization(
ScriptState* script_state) { … }
template class MODULES_TEMPLATE_EXPORT
FrameQueueTransferringOptimizer<scoped_refptr<media::AudioBuffer>>;
template class MODULES_TEMPLATE_EXPORT
FrameQueueTransferringOptimizer<scoped_refptr<media::VideoFrame>>;
}