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

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

Issue 2718643002: Worker: Pass ParentFrameTaskRunners via WorkerThread::start() instead of the ctor (Closed)
Patch Set: Created 3 years, 9 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/compositorworker/CompositorWorkerMessagingProxy.h" 5 #include "modules/compositorworker/CompositorWorkerMessagingProxy.h"
6 6
7 #include "core/workers/WorkerThreadStartupData.h" 7 #include "core/workers/WorkerThreadStartupData.h"
8 #include "modules/compositorworker/CompositorWorkerThread.h" 8 #include "modules/compositorworker/CompositorWorkerThread.h"
9 #include <memory> 9 #include <memory>
10 10
11 namespace blink { 11 namespace blink {
12 12
13 CompositorWorkerMessagingProxy::CompositorWorkerMessagingProxy( 13 CompositorWorkerMessagingProxy::CompositorWorkerMessagingProxy(
14 InProcessWorkerBase* worker, 14 InProcessWorkerBase* worker,
15 WorkerClients* workerClients) 15 WorkerClients* workerClients)
16 : InProcessWorkerMessagingProxy(worker, workerClients) {} 16 : InProcessWorkerMessagingProxy(worker, workerClients) {}
17 17
18 CompositorWorkerMessagingProxy::~CompositorWorkerMessagingProxy() {} 18 CompositorWorkerMessagingProxy::~CompositorWorkerMessagingProxy() {}
19 19
20 std::unique_ptr<WorkerThread> 20 std::unique_ptr<WorkerThread>
21 CompositorWorkerMessagingProxy::createWorkerThread(double originTime) { 21 CompositorWorkerMessagingProxy::createWorkerThread(double originTime) {
22 return CompositorWorkerThread::create(loaderProxy(), workerObjectProxy(), 22 return CompositorWorkerThread::create(loaderProxy(), workerObjectProxy(),
23 getParentFrameTaskRunners(),
24 originTime); 23 originTime);
25 } 24 }
26 25
27 } // namespace blink 26 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698