Chromium Code Reviews| Index: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp |
| diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8bdcd6dcb30fc23d71b4dfa0e3a85602152767cc |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp |
| @@ -0,0 +1,42 @@ |
| +// 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/AnimationWorkletThread.h" |
| + |
| +#include "core/workers/WorkerThreadStartupData.h" |
| +#include "platform/TraceEvent.h" |
| +#include "wtf/PtrUtil.h" |
| + |
| +namespace blink { |
| + |
| +std::unique_ptr<AnimationWorkletThread> AnimationWorkletThread::create(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy) |
| +{ |
| + TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "AnimationWorkletThread::create"); |
|
majidvp
2016/08/08 14:43:07
nit: should the trace category be "animation-workl
ikilpatrick
2016/08/08 15:32:10
Done.
|
| + DCHECK(isMainThread()); |
| + return wrapUnique(new AnimationWorkletThread(workerLoaderProxy, workerReportingProxy)); |
| +} |
| + |
| +AnimationWorkletThread::AnimationWorkletThread(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy) |
| + : AbstractCompositorWorkerThread(workerLoaderProxy, workerReportingProxy) |
| +{ |
| +} |
| + |
| +AnimationWorkletThread::~AnimationWorkletThread() |
| +{ |
| +} |
| + |
| +WorkerOrWorkletGlobalScope* AnimationWorkletThread::createWorkerGlobalScope(std::unique_ptr<WorkerThreadStartupData> startupData) |
| +{ |
| + TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "AnimationWorkletThread::createWorkerGlobalScope"); |
| + // TODO(ikilpatrick): implement. |
| + return nullptr; |
| +} |
| + |
| +ConsoleMessageStorage* AnimationWorkletThread::consoleMessageStorage() |
| +{ |
| + // TODO(ikilpatrick): implement. |
| + return nullptr; |
| +} |
| + |
| +} // namespace blink |