OLD | NEW |
---|---|
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/InProcessWorkerBase.h" | |
7 #include "core/workers/WorkerThreadStartupData.h" | 8 #include "core/workers/WorkerThreadStartupData.h" |
8 #include "modules/compositorworker/CompositorWorkerThread.h" | 9 #include "modules/compositorworker/CompositorWorkerThread.h" |
9 #include <memory> | 10 #include <memory> |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 CompositorWorkerMessagingProxy::CompositorWorkerMessagingProxy(InProcessWorkerBa se* worker, WorkerClients* workerClients) | 14 CompositorWorkerMessagingProxy::CompositorWorkerMessagingProxy(InProcessWorkerBa se* worker, WorkerClients* workerClients) |
14 : InProcessWorkerMessagingProxy(worker, workerClients) | 15 : InProcessWorkerMessagingProxy(worker->getExecutionContext(), worker, worke rClients) |
haraken
2016/08/05 08:20:58
Maybe is it redundant to pass both |worker| and |w
nhiroki
2016/08/08 09:19:14
Reverted this change (see my reply to kinuko's com
| |
15 { | 16 { |
16 } | 17 } |
17 | 18 |
18 CompositorWorkerMessagingProxy::~CompositorWorkerMessagingProxy() | 19 CompositorWorkerMessagingProxy::~CompositorWorkerMessagingProxy() |
19 { | 20 { |
20 } | 21 } |
21 | 22 |
22 std::unique_ptr<WorkerThread> CompositorWorkerMessagingProxy::createWorkerThread (double originTime) | 23 std::unique_ptr<WorkerThread> CompositorWorkerMessagingProxy::createWorkerThread (double originTime) |
23 { | 24 { |
24 return CompositorWorkerThread::create(loaderProxy(), workerObjectProxy(), or iginTime); | 25 return CompositorWorkerThread::create(loaderProxy(), workerObjectProxy(), or iginTime); |
25 } | 26 } |
26 | 27 |
27 } // namespace blink | 28 } // namespace blink |
OLD | NEW |