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 <memory> |
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 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 CompositorWorkerMessagingProxy::CompositorWorkerMessagingProxy( | 13 CompositorWorkerMessagingProxy::CompositorWorkerMessagingProxy( |
14 InProcessWorkerBase* worker, | 14 InProcessWorkerBase* worker, |
15 WorkerClients* worker_clients) | 15 WorkerClients* worker_clients) |
16 : InProcessWorkerMessagingProxy(worker, worker_clients) { | 16 : InProcessWorkerMessagingProxy(worker, worker_clients) { |
17 DCHECK(IsMainThread()); | 17 DCHECK(IsMainThread()); |
18 } | 18 } |
19 | 19 |
20 CompositorWorkerMessagingProxy::~CompositorWorkerMessagingProxy() {} | 20 CompositorWorkerMessagingProxy::~CompositorWorkerMessagingProxy() {} |
21 | 21 |
22 std::unique_ptr<WorkerThread> | 22 std::unique_ptr<WorkerThread> |
23 CompositorWorkerMessagingProxy::CreateWorkerThread(double origin_time) { | 23 CompositorWorkerMessagingProxy::CreateWorkerThread(double origin_time) { |
24 return CompositorWorkerThread::Create(GetThreadableLoadingContext(), | 24 return CompositorWorkerThread::Create(GetThreadableLoadingContext(), |
25 WorkerObjectProxy(), origin_time); | 25 WorkerObjectProxy(), origin_time); |
26 } | 26 } |
27 | 27 |
28 } // namespace blink | 28 } // namespace blink |
OLD | NEW |