| 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/WorkerBackingThread.h" | 9 #include "core/workers/WorkerBackingThread.h" |
| 10 #include "core/workers/WorkerObjectProxy.h" | 10 #include "core/workers/WorkerObjectProxy.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 { | 64 { |
| 65 return *BackingThreadHolder::instance().thread(); | 65 return *BackingThreadHolder::instance().thread(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 WorkerGlobalScope*CompositorWorkerThread::createWorkerGlobalScope(PassOwnPtr<Wor
kerThreadStartupData> startupData) | 68 WorkerGlobalScope*CompositorWorkerThread::createWorkerGlobalScope(PassOwnPtr<Wor
kerThreadStartupData> startupData) |
| 69 { | 69 { |
| 70 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "CompositorWork
erThread::createWorkerGlobalScope"); | 70 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "CompositorWork
erThread::createWorkerGlobalScope"); |
| 71 return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin); | 71 return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void CompositorWorkerThread::ensureSharedBackingThread() |
| 75 { |
| 76 BackingThreadHolder::instance(); |
| 77 } |
| 78 |
| 74 void CompositorWorkerThread::clearSharedBackingThread() | 79 void CompositorWorkerThread::clearSharedBackingThread() |
| 75 { | 80 { |
| 76 BackingThreadHolder::instance().clear(); | 81 BackingThreadHolder::instance().clear(); |
| 77 } | 82 } |
| 78 | 83 |
| 79 void CompositorWorkerThread::resetSharedBackingThreadForTest() | 84 void CompositorWorkerThread::resetSharedBackingThreadForTest() |
| 80 { | 85 { |
| 81 BackingThreadHolder::instance().resetForTest(); | 86 BackingThreadHolder::instance().resetForTest(); |
| 82 } | 87 } |
| 83 | 88 |
| 84 } // namespace blink | 89 } // namespace blink |
| OLD | NEW |