| 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/CompositorWorkerThread.h" | 5 #include "modules/compositorworker/CompositorWorkerThread.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/V8GCController.h" | 7 #include "bindings/core/v8/V8GCController.h" |
| 8 #include "bindings/core/v8/V8Initializer.h" | 8 #include "bindings/core/v8/V8Initializer.h" |
| 9 #include "core/workers/WorkerObjectProxy.h" | 9 #include "core/workers/WorkerObjectProxy.h" |
| 10 #include "core/workers/WorkerThreadStartupData.h" | 10 #include "core/workers/WorkerThreadStartupData.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 CompositorWorkerThread::~CompositorWorkerThread() | 154 CompositorWorkerThread::~CompositorWorkerThread() |
| 155 { | 155 { |
| 156 } | 156 } |
| 157 | 157 |
| 158 WebThreadSupportingGC* CompositorWorkerThread::sharedBackingThread() | 158 WebThreadSupportingGC* CompositorWorkerThread::sharedBackingThread() |
| 159 { | 159 { |
| 160 return CompositorWorkerSharedState::instance().compositorWorkerThread(); | 160 return CompositorWorkerSharedState::instance().compositorWorkerThread(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 PassRefPtrWillBeRawPtr<WorkerGlobalScope> CompositorWorkerThread::createWorkerGl
obalScope(PassOwnPtr<WorkerThreadStartupData> startupData) | 163 RawPtr<WorkerGlobalScope> CompositorWorkerThread::createWorkerGlobalScope(PassOw
nPtr<WorkerThreadStartupData> startupData) |
| 164 { | 164 { |
| 165 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "CompositorWork
erThread::createWorkerGlobalScope"); | 165 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "CompositorWork
erThread::createWorkerGlobalScope"); |
| 166 return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin); | 166 return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin); |
| 167 } | 167 } |
| 168 | 168 |
| 169 WebThreadSupportingGC& CompositorWorkerThread::backingThread() | 169 WebThreadSupportingGC& CompositorWorkerThread::backingThread() |
| 170 { | 170 { |
| 171 return *CompositorWorkerSharedState::instance().compositorWorkerThread(); | 171 return *CompositorWorkerSharedState::instance().compositorWorkerThread(); |
| 172 } | 172 } |
| 173 | 173 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 { | 210 { |
| 211 return CompositorWorkerSharedState::instance().hasThreadForTest(); | 211 return CompositorWorkerSharedState::instance().hasThreadForTest(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 bool CompositorWorkerThread::hasIsolateForTest() | 214 bool CompositorWorkerThread::hasIsolateForTest() |
| 215 { | 215 { |
| 216 return CompositorWorkerSharedState::instance().hasIsolateForTest(); | 216 return CompositorWorkerSharedState::instance().hasIsolateForTest(); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace blink | 219 } // namespace blink |
| OLD | NEW |