blob: 5f1ba5355e5c13b48ad35d5de8c8ec7877e710e7 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "modules/compositorworker/AnimationWorkletMessagingProxy.h"
#include "core/workers/ThreadedWorkletObjectProxy.h"
#include "core/workers/WorkerClients.h"
#include "modules/compositorworker/AnimationWorkletThread.h"
namespace blink {
AnimationWorkletMessagingProxy::AnimationWorkletMessagingProxy(
ExecutionContext* execution_context,
WorkerClients* worker_clients)
: ThreadedWorkletMessagingProxy(execution_context, worker_clients) {}
DEFINE_TRACE(AnimationWorkletMessagingProxy) {
ThreadedWorkletMessagingProxy::Trace(visitor);
}
AnimationWorkletMessagingProxy::~AnimationWorkletMessagingProxy() {}
std::unique_ptr<WorkerThread>
AnimationWorkletMessagingProxy::CreateWorkerThread() {
return AnimationWorkletThread::Create(CreateThreadableLoadingContext(),
WorkletObjectProxy());
}
} // namespace blink