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

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: rename abstract class. 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 #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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698