#include "cc/slim/frame_sink.h"
#include <utility>
#include "base/memory/ptr_util.h"
#include "cc/slim/delayed_scheduler.h"
#include "cc/slim/frame_sink_impl.h"
namespace cc::slim {
std::unique_ptr<FrameSink> FrameSink::Create(
mojo::PendingAssociatedRemote<viz::mojom::CompositorFrameSink>
compositor_frame_sink_associated_remote,
mojo::PendingReceiver<viz::mojom::CompositorFrameSinkClient>
client_receiver,
scoped_refptr<viz::RasterContextProvider> context_provider,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
base::PlatformThreadId io_thread_id) {
return base::WrapUnique<FrameSink>(
new FrameSinkImpl(std::move(task_runner),
std::move(compositor_frame_sink_associated_remote),
std::move(client_receiver), std::move(context_provider),
io_thread_id, std::make_unique<DelayedScheduler>()));
}
}