| 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 "core/workers/WorkerBackingThread.h" | 7 #include "core/workers/WorkerBackingThread.h" |
| 8 #include "platform/CrossThreadFunctional.h" | 8 #include "platform/CrossThreadFunctional.h" |
| 9 #include "platform/WaitableEvent.h" | 9 #include "platform/WaitableEvent.h" |
| 10 #include "platform/WebThreadSupportingGC.h" | 10 #include "platform/WebThreadSupportingGC.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 bool m_initialized = false; | 95 bool m_initialized = false; |
| 96 | 96 |
| 97 static BackingThreadHolder* s_instance; | 97 static BackingThreadHolder* s_instance; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 BackingThreadHolder* BackingThreadHolder::s_instance = nullptr; | 100 BackingThreadHolder* BackingThreadHolder::s_instance = nullptr; |
| 101 | 101 |
| 102 } // namespace | 102 } // namespace |
| 103 | 103 |
| 104 AbstractAnimationWorkletThread::AbstractAnimationWorkletThread(PassRefPtr<Worker
LoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy) | 104 AbstractAnimationWorkletThread::AbstractAnimationWorkletThread(PassRefPtr<Worker
LoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy) |
| 105 : WorkerThread(workerLoaderProxy, workerReportingProxy) | 105 : WorkerThread(std::move(workerLoaderProxy), workerReportingProxy) |
| 106 { | 106 { |
| 107 } | 107 } |
| 108 | 108 |
| 109 AbstractAnimationWorkletThread::~AbstractAnimationWorkletThread() | 109 AbstractAnimationWorkletThread::~AbstractAnimationWorkletThread() |
| 110 { | 110 { |
| 111 } | 111 } |
| 112 | 112 |
| 113 WorkerBackingThread& AbstractAnimationWorkletThread::workerBackingThread() | 113 WorkerBackingThread& AbstractAnimationWorkletThread::workerBackingThread() |
| 114 { | 114 { |
| 115 return *BackingThreadHolder::instance().thread(); | 115 return *BackingThreadHolder::instance().thread(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 126 DCHECK(isMainThread()); | 126 DCHECK(isMainThread()); |
| 127 BackingThreadHolder::clear(); | 127 BackingThreadHolder::clear(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void AbstractAnimationWorkletThread::createSharedBackingThreadForTest() | 130 void AbstractAnimationWorkletThread::createSharedBackingThreadForTest() |
| 131 { | 131 { |
| 132 BackingThreadHolder::createForTest(); | 132 BackingThreadHolder::createForTest(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace blink | 135 } // namespace blink |
| OLD | NEW |