Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp

Issue 2214263007: [worklets] Split apart CompositorWorkerThread for sharing with AnimationWorkletThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix spelling. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698