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 "config.h" | 5 #include "config.h" |
6 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" | 6 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" |
7 | 7 |
8 #include "bindings/core/v8/SerializedScriptValue.h" | 8 #include "bindings/core/v8/SerializedScriptValue.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 16 matching lines...) Expand all Loading... |
27 , m_callbackCollection(this) | 27 , m_callbackCollection(this) |
28 { | 28 { |
29 } | 29 } |
30 | 30 |
31 CompositorWorkerGlobalScope::~CompositorWorkerGlobalScope() | 31 CompositorWorkerGlobalScope::~CompositorWorkerGlobalScope() |
32 { | 32 { |
33 } | 33 } |
34 | 34 |
35 DEFINE_TRACE(CompositorWorkerGlobalScope) | 35 DEFINE_TRACE(CompositorWorkerGlobalScope) |
36 { | 36 { |
37 #if ENABLE(OILPAN) | |
38 visitor->trace(m_callbackCollection); | 37 visitor->trace(m_callbackCollection); |
39 #endif | |
40 WorkerGlobalScope::trace(visitor); | 38 WorkerGlobalScope::trace(visitor); |
41 } | 39 } |
42 | 40 |
43 const AtomicString& CompositorWorkerGlobalScope::interfaceName() const | 41 const AtomicString& CompositorWorkerGlobalScope::interfaceName() const |
44 { | 42 { |
45 return EventTargetNames::CompositorWorkerGlobalScope; | 43 return EventTargetNames::CompositorWorkerGlobalScope; |
46 } | 44 } |
47 | 45 |
48 void CompositorWorkerGlobalScope::postMessage(ExecutionContext* executionContext
, PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, Exce
ptionState& exceptionState) | 46 void CompositorWorkerGlobalScope::postMessage(ExecutionContext* executionContext
, PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, Exce
ptionState& exceptionState) |
49 { | 47 { |
(...skipping 18 matching lines...) Expand all Loading... |
68 { | 66 { |
69 m_callbackCollection.executeCallbacks(highResTimeNow, highResTimeNow); | 67 m_callbackCollection.executeCallbacks(highResTimeNow, highResTimeNow); |
70 } | 68 } |
71 | 69 |
72 CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const | 70 CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const |
73 { | 71 { |
74 return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread()); | 72 return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread()); |
75 } | 73 } |
76 | 74 |
77 } // namespace blink | 75 } // namespace blink |
OLD | NEW |