Chromium Code Reviews| 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("compositor-worker"), "AnimationWorkl etThread::create"); | |
|
majidvp
2016/08/08 14:43:07
nit: should the trace category be "animation-workl
ikilpatrick
2016/08/08 15:32:10
Done.
| |
| 16 DCHECK(isMainThread()); | |
| 17 return wrapUnique(new AnimationWorkletThread(workerLoaderProxy, workerReport ingProxy)); | |
| 18 } | |
| 19 | |
| 20 AnimationWorkletThread::AnimationWorkletThread(PassRefPtr<WorkerLoaderProxy> wor kerLoaderProxy, WorkerReportingProxy& workerReportingProxy) | |
| 21 : AbstractCompositorWorkerThread(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("compositor-worker"), "AnimationWorkl etThread::createWorkerGlobalScope"); | |
| 32 // TODO(ikilpatrick): implement. | |
| 33 return nullptr; | |
| 34 } | |
| 35 | |
| 36 ConsoleMessageStorage* AnimationWorkletThread::consoleMessageStorage() | |
| 37 { | |
| 38 // TODO(ikilpatrick): implement. | |
| 39 return nullptr; | |
| 40 } | |
| 41 | |
| 42 } // namespace blink | |
| OLD | NEW |