| 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 #ifndef CompositorWorkerGlobalScope_h | 5 #ifndef CompositorWorkerGlobalScope_h |
| 6 #define CompositorWorkerGlobalScope_h | 6 #define CompositorWorkerGlobalScope_h |
| 7 | 7 |
| 8 #include "core/dom/FrameRequestCallbackCollection.h" | 8 #include "core/dom/FrameRequestCallbackCollection.h" |
| 9 #include "core/dom/MessagePort.h" | 9 #include "core/dom/MessagePort.h" |
| 10 #include "core/workers/WorkerGlobalScope.h" | 10 #include "core/workers/WorkerGlobalScope.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 CompositorWorkerThread*, | 26 CompositorWorkerThread*, |
| 27 std::unique_ptr<WorkerThreadStartupData>, | 27 std::unique_ptr<WorkerThreadStartupData>, |
| 28 double timeOrigin); | 28 double timeOrigin); |
| 29 ~CompositorWorkerGlobalScope() override; | 29 ~CompositorWorkerGlobalScope() override; |
| 30 | 30 |
| 31 void dispose() override; | 31 void dispose() override; |
| 32 | 32 |
| 33 // EventTarget | 33 // EventTarget |
| 34 const AtomicString& interfaceName() const override; | 34 const AtomicString& interfaceName() const override; |
| 35 | 35 |
| 36 void postMessage(ExecutionContext*, | 36 void postMessage(ScriptState*, |
| 37 PassRefPtr<SerializedScriptValue>, | 37 PassRefPtr<SerializedScriptValue>, |
| 38 const MessagePortArray&, | 38 const MessagePortArray&, |
| 39 ExceptionState&); | 39 ExceptionState&); |
| 40 static bool canTransferArrayBuffersAndImageBitmaps() { return true; } | 40 static bool canTransferArrayBuffersAndImageBitmaps() { return true; } |
| 41 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 41 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 42 | 42 |
| 43 int requestAnimationFrame(FrameRequestCallback*); | 43 int requestAnimationFrame(FrameRequestCallback*); |
| 44 void cancelAnimationFrame(int id); | 44 void cancelAnimationFrame(int id); |
| 45 bool executeAnimationFrameCallbacks(double highResTimeMs); | 45 bool executeAnimationFrameCallbacks(double highResTimeMs); |
| 46 | 46 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 59 | 59 |
| 60 InProcessWorkerObjectProxy& workerObjectProxy() const; | 60 InProcessWorkerObjectProxy& workerObjectProxy() const; |
| 61 | 61 |
| 62 bool m_executingAnimationFrameCallbacks; | 62 bool m_executingAnimationFrameCallbacks; |
| 63 FrameRequestCallbackCollection m_callbackCollection; | 63 FrameRequestCallbackCollection m_callbackCollection; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace blink | 66 } // namespace blink |
| 67 | 67 |
| 68 #endif // CompositorWorkerGlobalScope_h | 68 #endif // CompositorWorkerGlobalScope_h |
| OLD | NEW |