OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "modules/compositorworker/AnimationWorkletThread.h" |
| 6 |
| 7 #include "core/workers/WorkerThreadStartupData.h" |
| 8 #include "platform/TraceEvent.h" |
| 9 #include "wtf/PtrUtil.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 std::unique_ptr<AnimationWorkletThread> AnimationWorkletThread::create(PassRefPt
r<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingPro
xy) |
| 14 { |
| 15 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("animation-worklet"), "AnimationWorkl
etThread::create"); |
| 16 DCHECK(isMainThread()); |
| 17 return wrapUnique(new AnimationWorkletThread(workerLoaderProxy, workerReport
ingProxy)); |
| 18 } |
| 19 |
| 20 AnimationWorkletThread::AnimationWorkletThread(PassRefPtr<WorkerLoaderProxy> wor
kerLoaderProxy, WorkerReportingProxy& workerReportingProxy) |
| 21 : AbstractAnimationWorkletThread(workerLoaderProxy, workerReportingProxy) |
| 22 { |
| 23 } |
| 24 |
| 25 AnimationWorkletThread::~AnimationWorkletThread() |
| 26 { |
| 27 } |
| 28 |
| 29 WorkerOrWorkletGlobalScope* AnimationWorkletThread::createWorkerGlobalScope(std:
:unique_ptr<WorkerThreadStartupData> startupData) |
| 30 { |
| 31 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("animation-worklet"), "AnimationWorkl
etThread::createWorkerGlobalScope"); |
| 32 // TODO(ikilpatrick): implement. |
| 33 return nullptr; |
| 34 } |
| 35 |
| 36 } // namespace blink |
OLD | NEW |