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 | |
| 10 namespace blink { | |
| 11 | |
| 12 std::unique_ptr<AnimationWorkletThread> AnimationWorkletThread::create(PassRefPt r<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingPro xy) | |
| 13 { | |
| 14 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "AnimationWorkl etThread::create"); | |
| 15 DCHECK(isMainThread()); | |
| 16 return wrapUnique(new AnimationWorkletThread(workerLoaderProxy, workerReport ingProxy)); | |
|
majidvp
2016/08/08 12:46:48
include "wtf/PtrUtil.h"
ikilpatrick
2016/08/08 13:54:58
Done.
| |
| 17 } | |
| 18 | |
| 19 AnimationWorkletThread::AnimationWorkletThread(PassRefPtr<WorkerLoaderProxy> wor kerLoaderProxy, WorkerReportingProxy& workerReportingProxy) | |
| 20 : AbstractCompositorWorkerThread(workerLoaderProxy, workerReportingProxy) | |
| 21 { | |
| 22 } | |
| 23 | |
| 24 AnimationWorkletThread::~AnimationWorkletThread() | |
| 25 { | |
| 26 } | |
| 27 | |
| 28 WorkerOrWorkletGlobalScope* AnimationWorkletThread::createWorkerGlobalScope(std: :unique_ptr<WorkerThreadStartupData> startupData) | |
| 29 { | |
| 30 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "AnimationWorkl etThread::createWorkerGlobalScope"); | |
| 31 // TODO(ikilpatrick): implement. | |
| 32 return nullptr; | |
| 33 } | |
| 34 | |
| 35 ConsoleMessageStorage* AnimationWorkletThread::consoleMessageStorage() | |
| 36 { | |
| 37 // TODO(ikilpatrick): implement. | |
| 38 return nullptr; | |
| 39 } | |
| 40 | |
| 41 } // namespace blink | |
| OLD | NEW |