| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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/AbstractAnimationWorkletThread.h" | 5 #include "modules/compositorworker/AbstractAnimationWorkletThread.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/workers/WorkerBackingThread.h" | 8 #include "core/workers/WorkerBackingThread.h" |
| 8 #include "core/workers/WorkletThreadHolder.h" | 9 #include "core/workers/WorkletThreadHolder.h" |
| 9 #include "platform/CrossThreadFunctional.h" | 10 #include "platform/CrossThreadFunctional.h" |
| 10 #include "platform/WebThreadSupportingGC.h" | 11 #include "platform/WebThreadSupportingGC.h" |
| 11 #include "public/platform/Platform.h" | 12 #include "public/platform/Platform.h" |
| 12 #include "wtf/Assertions.h" | 13 #include "wtf/Assertions.h" |
| 13 #include "wtf/PtrUtil.h" | 14 #include "wtf/PtrUtil.h" |
| 14 #include <memory> | |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 template class WorkletThreadHolder<AbstractAnimationWorkletThread>; | 18 template class WorkletThreadHolder<AbstractAnimationWorkletThread>; |
| 19 | 19 |
| 20 AbstractAnimationWorkletThread::AbstractAnimationWorkletThread( | 20 AbstractAnimationWorkletThread::AbstractAnimationWorkletThread( |
| 21 PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, | 21 PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, |
| 22 WorkerReportingProxy& workerReportingProxy, | 22 WorkerReportingProxy& workerReportingProxy, |
| 23 ParentFrameTaskRunners* parentFrameTaskRunners) | 23 ParentFrameTaskRunners* parentFrameTaskRunners) |
| 24 : WorkerThread(std::move(workerLoaderProxy), | 24 : WorkerThread(std::move(workerLoaderProxy), |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 DCHECK(isMainThread()); | 60 DCHECK(isMainThread()); |
| 61 WorkletThreadHolder<AbstractAnimationWorkletThread>::clearInstance(); | 61 WorkletThreadHolder<AbstractAnimationWorkletThread>::clearInstance(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void AbstractAnimationWorkletThread::createSharedBackingThreadForTest() { | 64 void AbstractAnimationWorkletThread::createSharedBackingThreadForTest() { |
| 65 WorkletThreadHolder<AbstractAnimationWorkletThread>::createForTest( | 65 WorkletThreadHolder<AbstractAnimationWorkletThread>::createForTest( |
| 66 Platform::current()->compositorThread()); | 66 Platform::current()->compositorThread()); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| OLD | NEW |